diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2019-12-02 08:57:27 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-01-23 11:31:14 +0100 |
commit | 902137ba8e469ed07c7f120a390161937a6288fb (patch) | |
tree | 031cb524d3cd71a32efe368600dbc1c2d93b9117 /arch/arc/plat-tb10x | |
parent | powerpc/devicetrees: Change 'gpios' to 'cs-gpios' on fsl, spi nodes (diff) | |
download | linux-902137ba8e469ed07c7f120a390161937a6288fb.tar.xz linux-902137ba8e469ed07c7f120a390161937a6288fb.zip |
powerpc/32: Add VDSO version of getcpu on non SMP
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.
Before the patch, vdsotest reported:
getcpu: syscall: 1572 nsec/call
getcpu: libc: 1787 nsec/call
getcpu: vdso: not tested
Now, vdsotest reports:
getcpu: syscall: 1582 nsec/call
getcpu: libc: 502 nsec/call
getcpu: vdso: 187 nsec/call
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/eaac4b6494ecff1811220fccc895bf282aab884a.1575273217.git.christophe.leroy@c-s.fr
Diffstat (limited to 'arch/arc/plat-tb10x')
0 files changed, 0 insertions, 0 deletions