]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s: idle POWER9 can execute stop in virtual mode
authorNicholas Piggin <npiggin@gmail.com>
Fri, 25 Aug 2017 04:30:35 +0000 (14:30 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 29 Aug 2017 11:42:14 +0000 (21:42 +1000)
commita48ae3cf7605f80c5d3d58429e1fb078368eb9dd
tree67e41c36075095cb7bfdb343f73f942dcbdd5ef8
parent3c49e870ef3acb33c7b9afb441f6bfc64dfa72de
powerpc/64s: idle POWER9 can execute stop in virtual mode

The hardware can execute stop in any context, and KVM does not
require real mode because siblings do not share MMU state. This
saves a switch to real-mode when going idle.

Acked-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/idle_book3s.S