summaryrefslogtreecommitdiff
path: root/drivers/spi
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@csgroup.eu>2021-02-10 11:44:09 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2021-02-11 15:35:13 +0300
commit5b90b9661a3396e00f6e8bcbb617a0787fb683d0 (patch)
tree8aca57352d6e9e8138b62804c364d0fa0fdbaf62 /drivers/spi
parentd524dda719f06967db4d3ba519edf9267f84c155 (diff)
downloadlinux-5b90b9661a3396e00f6e8bcbb617a0787fb683d0.tar.xz
powerpc/syscall: Avoid storing 'current' in another pointer
By saving the pointer pointing to thread_info.flags, gcc copies r2 in a non-volatile register. We know 'current' doesn't change, so avoid that intermediaite pointer. Reduces null_syscall benchmark by 2 cycles (322 => 320 cycles) On PPC64, gcc seems to know that 'current' is not changing, and it keeps it in a non volatile register to avoid multiple read of 'current' in paca. Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/ad0363ff0ff8c125f40e1cdc589a85bbd7e31693.1612946484.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'drivers/spi')
0 files changed, 0 insertions, 0 deletions