diff options
Diffstat (limited to 'include/linux/thread_info.h')
-rw-r--r-- | include/linux/thread_info.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/thread_info.h b/include/linux/thread_info.h index 2b5b10eed74f..e2d0fd81b1ba 100644 --- a/include/linux/thread_info.h +++ b/include/linux/thread_info.h | |||
@@ -13,6 +13,21 @@ | |||
13 | struct timespec; | 13 | struct timespec; |
14 | struct compat_timespec; | 14 | struct compat_timespec; |
15 | 15 | ||
16 | #ifdef CONFIG_THREAD_INFO_IN_TASK | ||
17 | struct thread_info { | ||
18 | u32 flags; /* low level flags */ | ||
19 | }; | ||
20 | |||
21 | #define INIT_THREAD_INFO(tsk) \ | ||
22 | { \ | ||
23 | .flags = 0, \ | ||
24 | } | ||
25 | #endif | ||
26 | |||
27 | #ifdef CONFIG_THREAD_INFO_IN_TASK | ||
28 | #define current_thread_info() ((struct thread_info *)current) | ||
29 | #endif | ||
30 | |||
16 | /* | 31 | /* |
17 | * System call restart block. | 32 | * System call restart block. |
18 | */ | 33 | */ |