diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index e4681256e43e..41df81395719 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1233,6 +1233,8 @@ static inline void task_unlock(struct task_struct *p) | |||
1233 | spin_unlock(&p->alloc_lock); | 1233 | spin_unlock(&p->alloc_lock); |
1234 | } | 1234 | } |
1235 | 1235 | ||
1236 | #ifndef __HAVE_THREAD_FUNCTIONS | ||
1237 | |||
1236 | #define task_thread_info(task) (task)->thread_info | 1238 | #define task_thread_info(task) (task)->thread_info |
1237 | 1239 | ||
1238 | static inline void setup_thread_stack(struct task_struct *p, struct task_struct *org) | 1240 | static inline void setup_thread_stack(struct task_struct *p, struct task_struct *org) |
@@ -1246,6 +1248,8 @@ static inline unsigned long *end_of_stack(struct task_struct *p) | |||
1246 | return (unsigned long *)(p->thread_info + 1); | 1248 | return (unsigned long *)(p->thread_info + 1); |
1247 | } | 1249 | } |
1248 | 1250 | ||
1251 | #endif | ||
1252 | |||
1249 | /* set thread flags in other task's structures | 1253 | /* set thread flags in other task's structures |
1250 | * - see asm/thread_info.h for TIF_xxxx flags available | 1254 | * - see asm/thread_info.h for TIF_xxxx flags available |
1251 | */ | 1255 | */ |