From 97d49f1d6e38afc0a233d1d57b2b3fc494f72f78 Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Wed, 9 Mar 2022 17:02:43 +0100 Subject: [PATCH] Fix maximum value for A_IRQ activity @nr_max is the upper bound associated with the number of CPU, not the number of interrupts. Signed-off-by: Sebastien GODARD --- activity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activity.c b/activity.c index bd6c395..eff8ba1 100644 --- a/activity.c +++ b/activity.c @@ -189,7 +189,7 @@ struct activity irq_act = { .g_nr = 0, .nr_ini = -1, .nr2 = -1, - .nr_max = NR_IRQS + 1, + .nr_max = NR_CPUS + 1, .nr = {-1, -1, -1}, .nr_allocated = 0, .fsize = STATS_IRQ_SIZE, -- 2.40.0