OSDN Git Service

powerpc/64s/idle: POWER9 implement a separate idle stop function for hotplug
authorNicholas Piggin <npiggin@gmail.com>
Fri, 17 Nov 2017 14:08:05 +0000 (00:08 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 31 Mar 2018 13:47:46 +0000 (00:47 +1100)
commit3d4fbffdd703d2b968db443911f2147c732a4a48
tree4227b85de9f76cbba0c7c9979ea08be7548c4d56
parentd40b6768e45bd9213139b2d91d30c7692b6007b1
powerpc/64s/idle: POWER9 implement a separate idle stop function for hotplug

Implement a new function to invoke stop, power9_offline_stop, which is
like power9_idle_stop but used by the cpu hotplug code.

Move KVM secondary state manipulation code to the offline case.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/processor.h
arch/powerpc/kernel/idle_book3s.S
arch/powerpc/platforms/powernv/idle.c