]> 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)
commit119cb3122c2b3af41d2a329885ff7397ee01b6df
tree3ef16572607edfbd655a5f46bca3fe80c0b6d69b
parentfebef31804c0d1acd93affe8dfc090220c2d6c60
powerpc/64: Fix setting of AIL in hypervisor mode

Commit ae50551f6 "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: ae50551f6b58 ("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