powerpc: add CPU field to struct thread_info
authorArd Biesheuvel <ardb@kernel.org>
Tue, 14 Sep 2021 12:10:32 +0000 (14:10 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 30 Sep 2021 14:13:10 +0000 (16:13 +0200)
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>
arch/powerpc/include/asm/thread_info.h

index b4ec6c7..5725029 100644 (file)
@@ -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;