Skip to content

Commit

Permalink
x86: add CPU field to struct thread_info
Browse files Browse the repository at this point in the history
The CPU field will be moved back into thread_info even when
THREAD_INFO_IN_TASK is enabled, so add it back to x86's definition of
struct thread_info.

Signed-off-by: Ard Biesheuvel <[email protected]>
Acked-by: Borislav Petkov <[email protected]>
Acked-by: Mark Rutland <[email protected]>
  • Loading branch information
ardbiesheuvel committed Sep 30, 2021
1 parent 001430c commit 5443f98
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/x86/include/asm/thread_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ struct thread_info {
unsigned long flags; /* low level flags */
unsigned long syscall_work; /* SYSCALL_WORK_ flags */
u32 status; /* thread synchronous flags */
#ifdef CONFIG_SMP
u32 cpu; /* current CPU */
#endif
};

#define INIT_THREAD_INFO(tsk) \
Expand Down

0 comments on commit 5443f98

Please sign in to comment.