[Skiboot] [PATCH 3/3] xive/P9: Use NUM_INT_PRIORITIES in xive_reset()

Cédric Le Goater clg at kaod.org
Wed Jun 24 19:16:25 AEST 2020


Signed-off-by: Cédric Le Goater <clg at kaod.org>
---
 hw/xive.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/xive.c b/hw/xive.c
index 845321ed59ff..2c8ffb9ceb02 100644
--- a/hw/xive.c
+++ b/hw/xive.c
@@ -4444,7 +4444,7 @@ static void xive_reset_one(struct xive *x)
 		if (i == 0)
 			continue;
 		eq_firmware = false;
-		for (j = 0; j < 8; j++) {
+		for (j = 0; j < NUM_INT_PRIORITIES; j++) {
 			uint32_t idx = (i << 3) | j;
 
 			eq = xive_get_eq(x, idx);
-- 
2.25.4



More information about the Skiboot mailing list