aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/asm-x86/thread_info.h22
1 files changed, 3 insertions, 19 deletions
diff --git a/include/asm-x86/thread_info.h b/include/asm-x86/thread_info.h
index d2dc1a3b5d65..4b91f59de8fc 100644
--- a/include/asm-x86/thread_info.h
+++ b/include/asm-x86/thread_info.h
@@ -177,21 +177,6 @@ static inline struct thread_info *current_thread_info(void)
177#define _TIF_WORK_CTXSW_PREV _TIF_WORK_CTXSW 177#define _TIF_WORK_CTXSW_PREV _TIF_WORK_CTXSW
178#define _TIF_WORK_CTXSW_NEXT (_TIF_WORK_CTXSW | _TIF_DEBUG) 178#define _TIF_WORK_CTXSW_NEXT (_TIF_WORK_CTXSW | _TIF_DEBUG)
179 179
180
181/*
182 * Thread-synchronous status.
183 *
184 * This is different from the flags in that nobody else
185 * ever touches our thread-synchronous status, so we don't
186 * have to worry about atomic accesses.
187 */
188#define TS_USEDFPU 0x0001 /* FPU was used by this task
189 this quantum (SMP) */
190#define TS_POLLING 0x0002 /* True if in idle loop
191 and not sleeping */
192
193#define tsk_is_polling(t) (task_thread_info(t)->status & TS_POLLING)
194
195#else /* X86_32 */ 180#else /* X86_32 */
196 181
197#include <asm/pda.h> 182#include <asm/pda.h>
@@ -349,6 +334,8 @@ static inline struct thread_info *stack_thread_info(void)
349 334
350#define PREEMPT_ACTIVE 0x10000000 335#define PREEMPT_ACTIVE 0x10000000
351 336
337#endif /* !X86_32 */
338
352/* 339/*
353 * Thread-synchronous status. 340 * Thread-synchronous status.
354 * 341 *
@@ -358,15 +345,12 @@ static inline struct thread_info *stack_thread_info(void)
358 */ 345 */
359#define TS_USEDFPU 0x0001 /* FPU was used by this task 346#define TS_USEDFPU 0x0001 /* FPU was used by this task
360 this quantum (SMP) */ 347 this quantum (SMP) */
361#define TS_COMPAT 0x0002 /* 32bit syscall active */ 348#define TS_COMPAT 0x0002 /* 32bit syscall active (64BIT)*/
362#define TS_POLLING 0x0004 /* true if in idle loop 349#define TS_POLLING 0x0004 /* true if in idle loop
363 and not sleeping */ 350 and not sleeping */
364 351
365#define tsk_is_polling(t) (task_thread_info(t)->status & TS_POLLING) 352#define tsk_is_polling(t) (task_thread_info(t)->status & TS_POLLING)
366 353
367#endif /* !X86_32 */
368
369
370#ifndef __ASSEMBLY__ 354#ifndef __ASSEMBLY__
371extern void arch_task_cache_init(void); 355extern void arch_task_cache_init(void);
372extern void free_thread_info(struct thread_info *ti); 356extern void free_thread_info(struct thread_info *ti);