commit | c06f0aff035ed5a7eaff5daa8e11e7ad28ab0d54 | [log] [tgz] |
---|---|---|
author | Christophe Leroy <christophe.leroy@c-s.fr> | Fri Jan 31 11:34:55 2020 +0000 |
committer | Michael Ellerman <mpe@ellerman.id.au> | Wed Feb 19 22:46:08 2020 +1100 |
tree | 0ab2645cbb2baeadc137e957adcacfc10c521e75 | |
parent | 9e27086292aa880921a0f2b8501e5189d5efcf03 [diff] |
powerpc: Don't use thread struct for saving SRR0/1 on syscall. CR0 can be saved later, and CTR can also be used for saving. Keep SRR1 in r9 and stash SRR0 in CTR, this avoids using thread_struct in memory for that. Saves 3 cycles (ie 1%) in null_syscall selftest on 8xx. 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/b94c3bc03bac9431fec2dadb686384c481889422.1580470483.git.christophe.leroy@c-s.fr