From: Davidlohr Bueso <dave@stgolabs.net>
To: akpm@linux-foundation.org
Cc: dave@stgolabs.net, linux-kernel@vger.kernel.org,
starvik@axis.com, linux-cris-kernel@axis.com,
Davidlohr Bueso <dbueso@suse.de>
Subject: [PATCH 2/4] cris: use generic current.h
Date: Wed, 1 Feb 2017 15:47:56 -0800 [thread overview]
Message-ID: <1485992878-4780-3-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: starvik@axis.com
Cc: linux-cris-kernel@axis.com
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
---
arch/cris/include/asm/Kbuild | 1 +
arch/cris/include/asm/current.h | 15 ---------------
2 files changed, 1 insertion(+), 15 deletions(-)
delete mode 100644 arch/cris/include/asm/current.h
diff --git a/arch/cris/include/asm/Kbuild b/arch/cris/include/asm/Kbuild
index 1778805f6380..0568dbe224b8 100644
--- a/arch/cris/include/asm/Kbuild
+++ b/arch/cris/include/asm/Kbuild
@@ -5,6 +5,7 @@ generic-y += bitsperlong.h
generic-y += clkdev.h
generic-y += cmpxchg.h
generic-y += cputime.h
+generic-y += current.h
generic-y += device.h
generic-y += div64.h
generic-y += errno.h
diff --git a/arch/cris/include/asm/current.h b/arch/cris/include/asm/current.h
deleted file mode 100644
index 5f5c0efd00be..000000000000
--- a/arch/cris/include/asm/current.h
+++ /dev/null
@@ -1,15 +0,0 @@
-#ifndef _CRIS_CURRENT_H
-#define _CRIS_CURRENT_H
-
-#include <linux/thread_info.h>
-
-struct task_struct;
-
-static inline struct task_struct * get_current(void)
-{
- return current_thread_info()->task;
-}
-
-#define current get_current()
-
-#endif /* !(_CRIS_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 ` [PATCH 1/4] alpha: " Davidlohr Bueso
2017-02-01 23:47 ` Davidlohr Bueso [this message]
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-3-git-send-email-dave@stgolabs.net \
--to=dave@stgolabs.net \
--cc=akpm@linux-foundation.org \
--cc=dbueso@suse.de \
--cc=linux-cris-kernel@axis.com \
--cc=linux-kernel@vger.kernel.org \
--cc=starvik@axis.com \
/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®