[AVR32] Provide more CPU information in /proc/cpuinfo and dmesg
[pv_ops_mirror.git] / include / asm-blackfin / current.h
blob31918d29122c9f0e1b70f9a4e8660a979180c906
1 #ifndef _BLACKFIN_CURRENT_H
2 #define _BLACKFIN_CURRENT_H
3 /*
4 * current.h
5 * (C) Copyright 2000, Lineo, David McCullough <davidm@lineo.com>
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.
11 #include <linux/thread_info.h>
13 struct task_struct;
15 static inline struct task_struct *get_current(void) __attribute__ ((__const__));
16 static inline struct task_struct *get_current(void)
18 return (current_thread_info()->task);
21 #define current (get_current())
23 #endif /* _BLACKFIN_CURRENT_H */