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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux