]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s: Simplify POWER9 DD1 idle workaround code
authorNicholas Piggin <npiggin@gmail.com>
Wed, 19 Apr 2017 13:05:51 +0000 (23:05 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 23 Apr 2017 10:32:23 +0000 (20:32 +1000)
commit8f5d60dcff03fbb78798d294b2b1dafd49b7c193
treeb681b7165d1f4fdbf16ced4d24fbe101b3b91a0b
parent751db1ea9937bae5f2683cc8681a678b37867069
powerpc/64s: Simplify POWER9 DD1 idle workaround code

The idle workaround does not need to load PACATOC, and it does not
need to be called within a nested function that requires LR to be
saved.

Load the PACATOC at entry to the idle wakeup. It does not matter which
PACA this comes from, so it's okay to call before the workaround. Then
apply the workaround to get the right PACA.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/feature-fixups.h
arch/powerpc/kernel/idle_book3s.S