Skip to content

Commit 5443f98

Browse files
committed
x86: add CPU field to struct thread_info
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]>
1 parent 001430c commit 5443f98

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/x86/include/asm/thread_info.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ struct thread_info {
5757
unsigned long flags; /* low level flags */
5858
unsigned long syscall_work; /* SYSCALL_WORK_ flags */
5959
u32 status; /* thread synchronous flags */
60+
#ifdef CONFIG_SMP
61+
u32 cpu; /* current CPU */
62+
#endif
6063
};
6164

6265
#define INIT_THREAD_INFO(tsk) \

0 commit comments

Comments
 (0)