]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit9cba253df42f6138b48ea88f1fa35ae8a7fd5225
treeb681b7165d1f4fdbf16ced4d24fbe101b3b91a0b
parent0d7720a24234cefa8b318b1a3cf0b302a51faec9
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