]> 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)
commitc88132883cde1701c7bf1a449d0b8e21a06e2420
treeb681b7165d1f4fdbf16ced4d24fbe101b3b91a0b
parent9a76309d1bf44f6709ad1f28f3d6aed04981c2ff
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