Skip to content

Commit 227d735

Browse files
committed
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 <[email protected]> Acked-by: Mark Rutland <[email protected]> Acked-by: Michael Ellerman <[email protected]>
1 parent bd2e263 commit 227d735

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/powerpc/include/asm/thread_info.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@
4747
struct thread_info {
4848
int preempt_count; /* 0 => preemptable,
4949
<0 => BUG */
50+
#ifdef CONFIG_SMP
51+
unsigned int cpu;
52+
#endif
5053
unsigned long local_flags; /* private flags for thread */
5154
#ifdef CONFIG_LIVEPATCH
5255
unsigned long *livepatch_sp;

0 commit comments

Comments
 (0)