Thread (32 messages) 32 messages, 9 authors, 2021-10-05

Re: [RFC PATCH 4/8] powerpc: add CPU field to struct thread_info

From: Ard Biesheuvel <ardb@kernel.org>
Date: 2021-09-27 15:12:57
Also in: linux-riscv, linux-s390, linuxppc-dev, lkml

On Tue, 14 Sept 2021 at 14:11, Ard Biesheuvel [off-list ref] wrote:
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>
Michael,

Do you have any objections or issues with this patch or the subsequent
ones cleaning up the task CPU kludge for ppc32? Christophe indicated
that he was happy with it.

Thanks,
Ard.

quoted hunk ↗ jump to hunk
---
 arch/powerpc/include/asm/thread_info.h | 3 +++
 1 file changed, 3 insertions(+)
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;
--
2.30.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help