summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2021-09-14 14:10:32 +0200
committerArd Biesheuvel <ardb@kernel.org>2021-09-30 16:13:10 +0200
commit227d735d889e0403f1659df6e2dece7633f380bc (patch)
tree4a5a268b215144a9a1bc62486212a56c7e178c09 /arch/powerpc/include
parentbd2e2632556a464bd07cc8e21f60738611a934af (diff)
downloadlinux-227d735d889e0403f1659df6e2dece7633f380bc.tar.bz2
powerpc: 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 powerpc's definition of struct thread_info. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Acked-by: Mark Rutland <mark.rutland@arm.com> Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/thread_info.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/thread_info.h b/arch/powerpc/include/asm/thread_info.h
index b4ec6c7dd72e..5725029aaa29 100644
--- a/arch/powerpc/include/asm/thread_info.h
+++ b/arch/powerpc/include/asm/thread_info.h
@@ -47,6 +47,9 @@
struct thread_info {
int preempt_count; /* 0 => preemptable,
<0 => BUG */
+#ifdef CONFIG_SMP
+ unsigned int cpu;
+#endif
unsigned long local_flags; /* private flags for thread */
#ifdef CONFIG_LIVEPATCH
unsigned long *livepatch_sp;