diff options
| -rw-r--r-- | arch/x86/include/asm/thread_info.h | 9 | ||||
| -rw-r--r-- | include/linux/thread_info.h | 11 |
2 files changed, 9 insertions, 11 deletions
diff --git a/arch/x86/include/asm/thread_info.h b/arch/x86/include/asm/thread_info.h index 2aaca53c0974..ad6f5eb07a95 100644 --- a/arch/x86/include/asm/thread_info.h +++ b/arch/x86/include/asm/thread_info.h | |||
| @@ -52,6 +52,15 @@ struct task_struct; | |||
| 52 | #include <asm/cpufeature.h> | 52 | #include <asm/cpufeature.h> |
| 53 | #include <linux/atomic.h> | 53 | #include <linux/atomic.h> |
| 54 | 54 | ||
| 55 | struct thread_info { | ||
| 56 | unsigned long flags; /* low level flags */ | ||
| 57 | }; | ||
| 58 | |||
| 59 | #define INIT_THREAD_INFO(tsk) \ | ||
| 60 | { \ | ||
| 61 | .flags = 0, \ | ||
| 62 | } | ||
| 63 | |||
| 55 | #define init_stack (init_thread_union.stack) | 64 | #define init_stack (init_thread_union.stack) |
| 56 | 65 | ||
| 57 | #else /* !__ASSEMBLY__ */ | 66 | #else /* !__ASSEMBLY__ */ |
diff --git a/include/linux/thread_info.h b/include/linux/thread_info.h index 45f004e9cc59..2873baf5372a 100644 --- a/include/linux/thread_info.h +++ b/include/linux/thread_info.h | |||
| @@ -14,17 +14,6 @@ struct timespec; | |||
| 14 | struct compat_timespec; | 14 | struct compat_timespec; |
| 15 | 15 | ||
| 16 | #ifdef CONFIG_THREAD_INFO_IN_TASK | 16 | #ifdef CONFIG_THREAD_INFO_IN_TASK |
| 17 | struct thread_info { | ||
| 18 | unsigned long 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) | 17 | #define current_thread_info() ((struct thread_info *)current) |
| 29 | #endif | 18 | #endif |
| 30 | 19 | ||
