mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-14 01:55:30 +07:00
include/asm-x86/thread_info_32.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:
parent
7c4d4784db
commit
89917f28f3
@ -20,7 +20,8 @@
|
||||
* low level task data that entry.S needs immediate access to
|
||||
* - this struct should fit entirely inside of one cache line
|
||||
* - this struct shares the supervisor stack pages
|
||||
* - if the contents of this structure are changed, the assembly constants must also be changed
|
||||
* - if the contents of this structure are changed,
|
||||
* the assembly constants must also be changed
|
||||
*/
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
@ -30,18 +31,16 @@ struct thread_info {
|
||||
unsigned long flags; /* low level flags */
|
||||
unsigned long status; /* thread-synchronous flags */
|
||||
__u32 cpu; /* current CPU */
|
||||
int preempt_count; /* 0 => preemptable, <0 => BUG */
|
||||
|
||||
|
||||
int preempt_count; /* 0 => preemptable,
|
||||
<0 => BUG */
|
||||
mm_segment_t addr_limit; /* thread address space:
|
||||
0-0xBFFFFFFF for user-thead
|
||||
0-0xFFFFFFFF for kernel-thread
|
||||
0-0xBFFFFFFF user-thread
|
||||
0-0xFFFFFFFF kernel-thread
|
||||
*/
|
||||
void *sysenter_return;
|
||||
struct restart_block restart_block;
|
||||
|
||||
unsigned long previous_esp; /* ESP of the previous stack in case
|
||||
of nested (IRQ) stacks
|
||||
unsigned long previous_esp; /* ESP of the previous stack in
|
||||
case of nested (IRQ) stacks
|
||||
*/
|
||||
__u8 supervisor_stack[0];
|
||||
};
|
||||
@ -90,7 +89,8 @@ register unsigned long current_stack_pointer asm("esp") __used;
|
||||
/* how to get the thread information struct from C */
|
||||
static inline struct thread_info *current_thread_info(void)
|
||||
{
|
||||
return (struct thread_info *)(current_stack_pointer & ~(THREAD_SIZE - 1));
|
||||
return (struct thread_info *)
|
||||
(current_stack_pointer & ~(THREAD_SIZE - 1));
|
||||
}
|
||||
|
||||
/* thread information allocation */
|
||||
@ -119,14 +119,16 @@ static inline struct thread_info *current_thread_info(void)
|
||||
|
||||
/*
|
||||
* 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
|
||||
* - other flags in MSW
|
||||
*/
|
||||
#define TIF_SYSCALL_TRACE 0 /* syscall trace active */
|
||||
#define TIF_SIGPENDING 1 /* signal pending */
|
||||
#define TIF_NEED_RESCHED 2 /* rescheduling necessary */
|
||||
#define TIF_SINGLESTEP 3 /* restore singlestep on return to user mode */
|
||||
#define TIF_SINGLESTEP 3 /* restore singlestep on return to
|
||||
user mode */
|
||||
#define TIF_IRET 4 /* return with iret */
|
||||
#define TIF_SYSCALL_EMU 5 /* syscall emulation active */
|
||||
#define TIF_SYSCALL_AUDIT 6 /* syscall auditing active */
|
||||
@ -184,8 +186,10 @@ static inline struct thread_info *current_thread_info(void)
|
||||
* ever touches our thread-synchronous status, so we don't
|
||||
* have to worry about atomic accesses.
|
||||
*/
|
||||
#define TS_USEDFPU 0x0001 /* FPU was used by this task this quantum (SMP) */
|
||||
#define TS_POLLING 0x0002 /* True if in idle loop and not sleeping */
|
||||
#define TS_USEDFPU 0x0001 /* FPU was used by this task
|
||||
this quantum (SMP) */
|
||||
#define TS_POLLING 0x0002 /* True if in idle loop
|
||||
and not sleeping */
|
||||
|
||||
#define tsk_is_polling(t) (task_thread_info(t)->status & TS_POLLING)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user