From f8080404dfa194882d18dfe99c9bec136b3eac1d Mon Sep 17 00:00:00 2001 From: Huibin Hong Date: Wed, 7 Dec 2022 09:06:05 +0000 Subject: [PATCH] soc: rockchip: debug: rockchip_show_interrupts print all cpu Signed-off-by: Huibin Hong Change-Id: I929a9cee5d596a8d9f1280f8232eefc2fecf2f31 --- drivers/soc/rockchip/rockchip_debug.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/soc/rockchip/rockchip_debug.c b/drivers/soc/rockchip/rockchip_debug.c index 37abfb79a483..1599b7a29808 100644 --- a/drivers/soc/rockchip/rockchip_debug.c +++ b/drivers/soc/rockchip/rockchip_debug.c @@ -433,7 +433,7 @@ static int rockchip_show_interrupts(char *p, int irq) j *= 10; buf += sprintf(buf, "%*s", prec + 8, ""); - for_each_online_cpu(j) + for_each_possible_cpu(j) buf += sprintf(buf, "CPU%-8d", j); buf += sprintf(buf, "\n"); } @@ -443,14 +443,14 @@ static int rockchip_show_interrupts(char *p, int irq) goto outsparse; if (desc->kstat_irqs) - for_each_online_cpu(j) + for_each_possible_cpu(j) any_count |= *per_cpu_ptr(desc->kstat_irqs, j); if ((!desc->action) && !any_count) goto outsparse; buf += sprintf(buf, "%*d: ", prec, i); - for_each_online_cpu(j) + for_each_possible_cpu(j) buf += sprintf(buf, "%10u ", desc->kstat_irqs ? *per_cpu_ptr(desc->kstat_irqs, j) : 0);