Skip to content

Commit

Permalink
powerpc/xive: Fix IPI reset
Browse files Browse the repository at this point in the history
When resetting an IPI, hw_ipi should also be set to zero.

Fixes: eac1e73 ("powerpc/xive: guest exploitation of the XIVE interrupt controller")
Signed-off-by: Cédric Le Goater <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
  • Loading branch information
legoater authored and mpe committed Oct 4, 2017
1 parent 070e004 commit 74f1282
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/powerpc/sysdev/xive/spapr.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,11 @@ static int xive_spapr_get_ipi(unsigned int cpu, struct xive_cpu *xc)

static void xive_spapr_put_ipi(unsigned int cpu, struct xive_cpu *xc)
{
if (!xc->hw_ipi)
return;

xive_irq_bitmap_free(xc->hw_ipi);
xc->hw_ipi = 0;
}
#endif /* CONFIG_SMP */

Expand Down

0 comments on commit 74f1282

Please sign in to comment.