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)
commit72b0d51d973beab5a06c97279b61a0a58ccf33c8
tree67e41c36075095cb7bfdb343f73f942dcbdd5ef8
parent65dbbe812fc2bec99cea89f498b7cdd32bcf8e1c
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