include/asm-x86/thread_info_64.h: checkpatch cleanups - formatting only
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
@@ -29,8 +29,8 @@ struct thread_info {
|
|||||||
__u32 flags; /* low level flags */
|
__u32 flags; /* low level flags */
|
||||||
__u32 status; /* thread synchronous flags */
|
__u32 status; /* thread synchronous flags */
|
||||||
__u32 cpu; /* current CPU */
|
__u32 cpu; /* current CPU */
|
||||||
int preempt_count; /* 0 => preemptable, <0 => BUG */
|
int preempt_count; /* 0 => preemptable,
|
||||||
|
<0 => BUG */
|
||||||
mm_segment_t addr_limit;
|
mm_segment_t addr_limit;
|
||||||
struct restart_block restart_block;
|
struct restart_block restart_block;
|
||||||
#ifdef CONFIG_IA32_EMULATION
|
#ifdef CONFIG_IA32_EMULATION
|
||||||
@@ -71,7 +71,7 @@ static inline struct thread_info *current_thread_info(void)
|
|||||||
static inline struct thread_info *stack_thread_info(void)
|
static inline struct thread_info *stack_thread_info(void)
|
||||||
{
|
{
|
||||||
struct thread_info *ti;
|
struct thread_info *ti;
|
||||||
__asm__("andq %%rsp,%0; ":"=r" (ti) : "0" (~(THREAD_SIZE - 1)));
|
asm("andq %%rsp,%0; " : "=r" (ti) : "0" (~(THREAD_SIZE - 1)));
|
||||||
return ti;
|
return ti;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -98,7 +98,8 @@ static inline struct thread_info *stack_thread_info(void)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* thread information flags
|
* thread information flags
|
||||||
* - these are process state flags that various assembly files may need to access
|
* - these are process state flags that various assembly files
|
||||||
|
* may need to access
|
||||||
* - pending work-to-be-done flags are in LSW
|
* - pending work-to-be-done flags are in LSW
|
||||||
* - other flags in MSW
|
* - other flags in MSW
|
||||||
* Warning: layout of LSW is hardcoded in entry.S
|
* Warning: layout of LSW is hardcoded in entry.S
|
||||||
@@ -149,7 +150,8 @@ static inline struct thread_info *stack_thread_info(void)
|
|||||||
|
|
||||||
/* work to do on interrupt/exception return */
|
/* work to do on interrupt/exception return */
|
||||||
#define _TIF_WORK_MASK \
|
#define _TIF_WORK_MASK \
|
||||||
(0x0000FFFF & ~(_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT|_TIF_SINGLESTEP|_TIF_SECCOMP))
|
(0x0000FFFF & \
|
||||||
|
~(_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT|_TIF_SINGLESTEP|_TIF_SECCOMP))
|
||||||
/* work to do on any return to user space */
|
/* work to do on any return to user space */
|
||||||
#define _TIF_ALLWORK_MASK (0x0000FFFF & ~_TIF_SECCOMP)
|
#define _TIF_ALLWORK_MASK (0x0000FFFF & ~_TIF_SECCOMP)
|
||||||
|
|
||||||
@@ -171,9 +173,11 @@ static inline struct thread_info *stack_thread_info(void)
|
|||||||
* ever touches our thread-synchronous status, so we don't
|
* ever touches our thread-synchronous status, so we don't
|
||||||
* have to worry about atomic accesses.
|
* have to worry about atomic accesses.
|
||||||
*/
|
*/
|
||||||
#define TS_USEDFPU 0x0001 /* FPU was used by this task this quantum (SMP) */
|
#define TS_USEDFPU 0x0001 /* FPU was used by this task
|
||||||
|
this quantum (SMP) */
|
||||||
#define TS_COMPAT 0x0002 /* 32bit syscall active */
|
#define TS_COMPAT 0x0002 /* 32bit syscall active */
|
||||||
#define TS_POLLING 0x0004 /* true if in idle loop and not sleeping */
|
#define TS_POLLING 0x0004 /* true if in idle loop
|
||||||
|
and not sleeping */
|
||||||
|
|
||||||
#define tsk_is_polling(t) (task_thread_info(t)->status & TS_POLLING)
|
#define tsk_is_polling(t) (task_thread_info(t)->status & TS_POLLING)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user