Skip to content

Commit

Permalink
xive: When an interrupt is freed, also clear its enabled map entry
Browse files Browse the repository at this point in the history
Otherwise we try to disable an invalid IVE during xive_reset()

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
  • Loading branch information
ozbenh authored and stewartsmith committed Mar 16, 2017
1 parent 68d66bc commit 4010f5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hw/xive.c
Original file line number Diff line number Diff line change
Expand Up @@ -4124,6 +4124,7 @@ static int64_t opal_xive_free_irq(uint32_t girq)
return OPAL_PARAMETER;
}
bitmap_clr_bit(*x->ipi_alloc_map, idx);
bitmap_clr_bit(*x->int_enabled_map, idx);
unlock(&x->lock);

return OPAL_SUCCESS;
Expand Down

0 comments on commit 4010f5e

Please sign in to comment.