diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2019-12-02 07:57:35 +0000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-01-23 21:31:16 +1100 |
commit | bfc2eae0ad72a43d2a270acce2581c065223aa12 (patch) | |
tree | 677e0b5114829a54c4d65612e7ed99b91b266f7f /arch/powerpc/kernel/vdso32/getcpu.S | |
parent | e33ffc956b086675551b86f5f83cf50ca47aa71c (diff) | |
download | linux-bfc2eae0ad72a43d2a270acce2581c065223aa12.tar.gz |
powerpc/vdso32: miscellaneous optimisations
Various optimisations by inverting branches and removing
redundant instructions.
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/b4e79f963845545bcce1459cd6fcfe46bdde7863.1575273217.git.christophe.leroy@c-s.fr
Diffstat (limited to 'arch/powerpc/kernel/vdso32/getcpu.S')
-rw-r--r-- | arch/powerpc/kernel/vdso32/getcpu.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/vdso32/getcpu.S b/arch/powerpc/kernel/vdso32/getcpu.S index 90b39af14383..ff5e214fec41 100644 --- a/arch/powerpc/kernel/vdso32/getcpu.S +++ b/arch/powerpc/kernel/vdso32/getcpu.S @@ -25,10 +25,10 @@ V_FUNCTION_BEGIN(__kernel_getcpu) rlwinm r7,r5,16,31-15,31-0 beq cr0,1f stw r6,0(r3) -1: beq cr1,2f - stw r7,0(r4) -2: crclr cr0*4+so +1: crclr cr0*4+so li r3,0 /* always success */ + beqlr cr1 + stw r7,0(r4) blr .cfi_endproc V_FUNCTION_END(__kernel_getcpu) |