powerpc/64s/idle: Run latch switch is done with MSR[EE]=0
authorNicholas Piggin <npiggin@gmail.com>
Tue, 13 Jun 2017 13:05:57 +0000 (23:05 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 19 Jun 2017 09:46:30 +0000 (19:46 +1000)
commit40d24343a8926b6998a13d04aa54e04961d1f5ed
treeeb9a20de3bdc69ee0817cae1f8cd3e7c770e3806
parent95acdc07124f329ef3088a9bc68af905804b2e6b
powerpc/64s/idle: Run latch switch is done with MSR[EE]=0

In the idle sleep/wake code we know that MSR[EE] is clear, so we can
avoid 2 x mfmsr and 2 x mtmsr by calling the double-underscore
versions of the run latch routines which assume interrupts are already
disabled.

Acked-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/idle.c