From: Davidlohr Bueso <dave@stgolabs.net>
To: akpm@linux-foundation.org
Cc: dave@stgolabs.net, linux-kernel@vger.kernel.org,
linux-alpha@vger.kernel.org, rth@twiddle.net,
Davidlohr Bueso <dbueso@suse.de>
Subject: [PATCH 1/4] alpha: use generic current.h
Date: Wed, 1 Feb 2017 15:47:55 -0800 [thread overview]
Message-ID: <1485992878-4780-2-git-send-email-dave@stgolabs.net> (raw)
In-Reply-To: <1485992878-4780-1-git-send-email-dave@stgolabs.net>
Given that the arch does not add its own implementations, simply
use the asm-generic/current.h (generic-y) header instead of
duplicating code.
Cc: linux-alpha@vger.kernel.org
Cc: rth@twiddle.net
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
---
arch/alpha/include/asm/Kbuild | 1 +
arch/alpha/include/asm/current.h | 9 ---------
2 files changed, 1 insertion(+), 9 deletions(-)
delete mode 100644 arch/alpha/include/asm/current.h
diff --git a/arch/alpha/include/asm/Kbuild b/arch/alpha/include/asm/Kbuild
index bf8475ce85ee..4c5468b03e45 100644
--- a/arch/alpha/include/asm/Kbuild
+++ b/arch/alpha/include/asm/Kbuild
@@ -10,3 +10,4 @@ generic-y += mm-arch-hooks.h
generic-y += preempt.h
generic-y += sections.h
generic-y += trace_clock.h
+generic-y += current.h
diff --git a/arch/alpha/include/asm/current.h b/arch/alpha/include/asm/current.h
deleted file mode 100644
index 094d285a1b34..000000000000
--- a/arch/alpha/include/asm/current.h
+++ /dev/null
@@ -1,9 +0,0 @@
-#ifndef _ALPHA_CURRENT_H
-#define _ALPHA_CURRENT_H
-
-#include <linux/thread_info.h>
-
-#define get_current() (current_thread_info()->task)
-#define current get_current()
-
-#endif /* _ALPHA_CURRENT_H */
--
2.6.6
next prev parent reply other threads:[~2017-02-01 23:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-01 23:47 [PATCH 0/4] archs: " Davidlohr Bueso
2017-02-01 23:47 ` Davidlohr Bueso [this message]
2017-02-01 23:47 ` [PATCH 2/4] cris: " Davidlohr Bueso
2017-02-01 23:47 ` [PATCH 3/4] parisc: " Davidlohr Bueso
2017-02-01 23:47 ` [PATCH 4/4] score: remove asm/current.h Davidlohr Bueso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1485992878-4780-2-git-send-email-dave@stgolabs.net \
--to=dave@stgolabs.net \
--cc=akpm@linux-foundation.org \
--cc=dbueso@suse.de \
--cc=linux-alpha@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rth@twiddle.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®