Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | #ifndef _I386_CURRENT_H |
2 | #define _I386_CURRENT_H | |
3 | ||
ec7fcaab JF |
4 | #include <asm/pda.h> |
5 | #include <linux/compiler.h> | |
1da177e4 LT |
6 | |
7 | struct task_struct; | |
8 | ||
ec7fcaab | 9 | static __always_inline struct task_struct *get_current(void) |
1da177e4 | 10 | { |
ec7fcaab | 11 | return read_pda(pcurrent); |
1da177e4 LT |
12 | } |
13 | ||
14 | #define current get_current() | |
15 | ||
16 | #endif /* !(_I386_CURRENT_H) */ |