Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <ardb@kernel.org>
Acked-by: Borislav Petkov <bp@suse.de>
Acked-by: Mark Rutland <mark.rutland@arm.com>

+3
+3
arch/x86/include/asm/thread_info.h
··· 57 57 unsigned long flags; /* low level flags */ 58 58 unsigned long syscall_work; /* SYSCALL_WORK_ flags */ 59 59 u32 status; /* thread synchronous flags */ 60 + #ifdef CONFIG_SMP 61 + u32 cpu; /* current CPU */ 62 + #endif 60 63 }; 61 64 62 65 #define INIT_THREAD_INFO(tsk) \