]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Fixes for hypervisor doorbell handling
authorPaul Mackerras <paulus@samba.org>
Thu, 19 Mar 2015 08:29:01 +0000 (19:29 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 20 Mar 2015 03:51:53 +0000 (14:51 +1100)
commit631569a84724948c22f656cebb6e2ed4be0e4236
treecfd171d1144b36cfcfac76685ad284fb54589259
parent5948862fde9344a9b06eaa1e690e0f4eead9c09a
powerpc/powernv: Fixes for hypervisor doorbell handling

Since we can now use hypervisor doorbells for host IPIs, this makes
sure we clear the host IPI flag when taking a doorbell interrupt, and
clears any pending doorbell IPI in pnv_smp_cpu_kill_self() (as we
already do for IPIs sent via the XICS interrupt controller).  Otherwise
if there did happen to be a leftover pending doorbell interrupt for
an offline CPU thread for any reason, it would prevent that thread from
going into a power-saving mode; it would instead keep waking up because
of the interrupt.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/ppc-opcode.h
arch/powerpc/include/asm/reg.h
arch/powerpc/kernel/dbell.c
arch/powerpc/platforms/powernv/smp.c