aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/include/asm/current.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-06-13 10:54:56 -0400
committerMike Frysinger <vapier@gentoo.org>2009-06-18 21:41:13 -0400
commit094167be1fe24a65ef1b4647b1ad22b3b7898621 (patch)
treeb35a00581ac3aa805b040bb166fdcae714aa43e8 /arch/blackfin/include/asm/current.h
parent3be5646c98169ee5d72847dff1fc459fcd8673d2 (diff)
Blackfin: convert simple headers to asm-generic
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/include/asm/current.h')
-rw-r--r--arch/blackfin/include/asm/current.h24
1 files changed, 1 insertions, 23 deletions
diff --git a/arch/blackfin/include/asm/current.h b/arch/blackfin/include/asm/current.h
index 31918d29122c..4c51401b5537 100644
--- a/arch/blackfin/include/asm/current.h
+++ b/arch/blackfin/include/asm/current.h
@@ -1,23 +1 @@
1#ifndef _BLACKFIN_CURRENT_H #include <asm-generic/current.h>
2#define _BLACKFIN_CURRENT_H
3/*
4 * current.h
5 * (C) Copyright 2000, Lineo, David McCullough <davidm@lineo.com>
6 *
7 * rather than dedicate a register (as the m68k source does), we
8 * just keep a global, we should probably just change it all to be
9 * current and lose _current_task.
10 */
11#include <linux/thread_info.h>
12
13struct task_struct;
14
15static inline struct task_struct *get_current(void) __attribute__ ((__const__));
16static inline struct task_struct *get_current(void)
17{
18 return (current_thread_info()->task);
19}
20
21#define current (get_current())
22
23#endif /* _BLACKFIN_CURRENT_H */