mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 12:14:01 +08:00
proc: use "unsigned int" in /proc/stat hook
Number of CPUs is never high enough to force 64-bit arithmetic. Save couple of bytes on x86_64. Link: http://lkml.kernel.org/r/20180627200710.GC18434@avx2 Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
891ae71dc4
commit
9a27e97aaa
@ -183,7 +183,7 @@ static int show_stat(struct seq_file *p, void *v)
|
||||
|
||||
static int stat_open(struct inode *inode, struct file *file)
|
||||
{
|
||||
size_t size = 1024 + 128 * num_online_cpus();
|
||||
unsigned int size = 1024 + 128 * num_online_cpus();
|
||||
|
||||
/* minimum size to display an interrupt count : 2 bytes */
|
||||
size += 2 * nr_irqs;
|
||||
|
Loading…
Reference in New Issue
Block a user