Re: [PATCH v4 1/8] powerpc/32: Add VDSO version of getcpu on non SMP

2020-01-28 Thread Michael Ellerman
On Mon, 2019-12-02 at 07:57:27 UTC, Christophe Leroy wrote: > Commit 18ad51dd342a ("powerpc: Add VDSO version of getcpu") added > getcpu() for PPC64 only, by making use of a user readable general > purpose SPR. > > PPC32 doesn't have any such SPR. > > For non SMP, just return CPU id 0 from the VD

[PATCH v4 1/8] powerpc/32: Add VDSO version of getcpu on non SMP

2019-12-02 Thread Christophe Leroy
Commit 18ad51dd342a ("powerpc: Add VDSO version of getcpu") added getcpu() for PPC64 only, by making use of a user readable general purpose SPR. PPC32 doesn't have any such SPR. For non SMP, just return CPU id 0 from the VDSO directly. PPC32 doesn't support CONFIG_NUMA so NUMA node is always 0.