]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64: Fix setting of AIL in hypervisor mode
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 15 Nov 2016 04:28:33 +0000 (15:28 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 15 Nov 2016 09:43:59 +0000 (20:43 +1100)
commit83f50ebed1072e5ad41eadc8c9c904869e536641
tree3ef16572607edfbd655a5f46bca3fe80c0b6d69b
parenta3780ad0a8bac402c8ecb39ec52082cea01ec5e2
powerpc/64: Fix setting of AIL in hypervisor mode

Commit d81f4fa0d "powerpc: Put exception configuration in a common place"
broke the setting of the AIL bit (which enables taking exceptions with
the MMU still on) on all processors, moving it incorrectly to a function
called only on the boot CPU. This was correct for the guest case but
not when running in hypervisor mode.

This fixes it by partially reverting that commit, putting the setting
back in cpu_ready_for_interrupts()

Fixes: d81f4fa0d381 ("powerpc: Put exception configuration in a common place")
Cc: stable@vger.kernel.org # v4.8+
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/setup_64.c