aboutsummaryrefslogtreecommitdiff
path: root/hw/xive.c
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2019-10-01 08:59:57 +0200
committerOliver O'Halloran <oohall@gmail.com>2019-11-04 10:52:47 +1100
commit0118b0a2e4b9a55a8e7a344183d9b594ce710e98 (patch)
tree18302719b9a7d29acb817bc79ba7e7aa68c96c71 /hw/xive.c
parente26a866f5393d711ed6967f6e8716068e7855f51 (diff)
downloadskiboot-0118b0a2e4b9a55a8e7a344183d9b594ce710e98.zip
skiboot-0118b0a2e4b9a55a8e7a344183d9b594ce710e98.tar.gz
skiboot-0118b0a2e4b9a55a8e7a344183d9b594ce710e98.tar.bz2
xive/p9: cleanup all EQs when a VP block is freed.
EQ 7 was missing from the cleanup loop. Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'hw/xive.c')
-rw-r--r--hw/xive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xive.c b/hw/xive.c
index 26ae10f..ff5a1be 100644
--- a/hw/xive.c
+++ b/hw/xive.c
@@ -4635,7 +4635,7 @@ static int64_t opal_xive_free_vp_block(uint64_t vp_base)
/* Ensure EQs are disabled and cleaned up. Ideally the caller
* should have done it but we double check it here
*/
- for (j = 0; j < 7; j++) {
+ for (j = 0; j < NUM_INT_PRIORITIES; j++) {
struct xive *eq_x = xive_from_vc_blk(eq_blk);
struct xive_eq eq, *orig_eq = xive_get_eq(eq_x, eq_idx + j);