]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/32: Remove unneccessary calculations in load_up_{fpu/altivec}
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 18 Aug 2021 08:47:28 +0000 (08:47 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 18 Aug 2021 13:49:55 +0000 (23:49 +1000)
commit41a0936e7a135467d3988388c67a421dbbcf4312
tree524fc178b50d0eb9d20f013b426728d693e8cf35
parente6b2cd69151bb386a6313e8c7e769852cd4140ad
powerpc/32: Remove unneccessary calculations in load_up_{fpu/altivec}

No need to re-read SPRN_THREAD, we can calculate thread address
from current (r2).

And remove a reload of value 1 into r4 as r4 is already 1.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/c04cce578b97a76a9e69a096698b1d89f721768a.1629276437.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/fpu.S
arch/powerpc/kernel/vector.S