summaryrefslogtreecommitdiff
path: root/include/linux/input
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2019-04-30 15:38:53 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2019-05-02 18:20:27 +0300
commit57bc13acbe11b6d60d5dc4d574c34e1d981a8824 (patch)
tree34780321e6fe3e373529e96305d268c972df27c1 /include/linux/input
parent1d3034aed4489ae96bc7eec5050096944fd181f6 (diff)
downloadlinux-57bc13acbe11b6d60d5dc4d574c34e1d981a8824.tar.xz
powerpc/40x: Don't use SPRN_SPRG_SCRATCH2 in EXCEPTION_PROLOG
Unlike said in the comment, r1 is not reused by the critical exception handler, as it uses a dedicated critirq_ctx stack. Decrementing r1 early is then unneeded. Should the above be valid, the code is crap buggy anyway as r1 gets some intermediate values that would jeopardise the whole process (for instance after mfspr r1,SPRN_SPRG_THREAD) Using SPRN_SPRG_SCRATCH2 to save r1 is then not needed, r11 can be used instead. This avoids one mtspr and one mfspr and makes the prolog closer to what's done on 6xx and 8xx. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'include/linux/input')
0 files changed, 0 insertions, 0 deletions