[PATCH 1/7] genirq: Use unsigned int for irqs_sum

Alexei Lozovsky
2021-09-11T03:48:29Z

It's read as unsigned int via kstat_cpu_irqs_sum() for /proc/stat.
There is no point in having this counter wider than necessary.

Signed-off-by: Alexei Lozovsky <me@ilammy.net>
---
include/linux/kernel_stat.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/kernel_stat.h b/include/linux/kernel_stat.h
index 44ae1a7eb9e3..72818fb39ae8 100644
--- a/include/linux/kernel_stat.h
+++ b/include/linux/kernel_stat.h
@@ -36,7 +36,7 @@ struct kernel_cpustat {
};

struct kernel_stat {
- unsigned long irqs_sum;
+ unsigned int irqs_sum;
unsigned int softirqs[NR_SOFTIRQS];
};

--
2.25.1