]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit933e3ebe1fae02ccc886a0d63abb02f09e86bbbc
treeeb9a20de3bdc69ee0817cae1f8cd3e7c770e3806
parente3013a6a960610bf021622bf0939a160fe9fd163
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