Re: [PATCH v2 1/8] powerpc/32: Add VDSO version of getcpu

2019-10-29 Thread Christophe Leroy
Le 18/09/2019 à 07:51, Michael Ellerman a écrit : We are still in the middle of the years long process of removing the "magic" syscall on 64-bit: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/powerpc/kernel/exceptions-64s.S?commit=4d856f72c10ecb060868ed10ff

Re: [PATCH v2 1/8] powerpc/32: Add VDSO version of getcpu

2019-09-17 Thread Michael Ellerman
Hi Christophe, Sorry I'm late replying to this. Christophe Leroy writes: > 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, a full system call can still be > a

[PATCH v2 1/8] powerpc/32: Add VDSO version of getcpu

2019-08-22 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, a full system call can still be avoided by implementing a fast system call which reads the CPU id in the task struct and