Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

proc/stat: remove arch_idle_time()

The last (only) architecture specific arch_idle_time() implementation was
removed with commit be76ea614460 ("s390/idle: remove arch_cpu_idle_time()
and corresponding code").

Therefore remove the now dead code in fs/proc/stat.c as well.

Link: https://lkml.kernel.org/r/20230405143452.2677172-1-hca@linux.ibm.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Heiko Carstens and committed by
Andrew Morton
1be2edb2 d6ccdd67

-26
-26
fs/proc/stat.c
··· 22 22 #define arch_irq_stat() 0 23 23 #endif 24 24 25 - #ifdef arch_idle_time 26 - 27 - u64 get_idle_time(struct kernel_cpustat *kcs, int cpu) 28 - { 29 - u64 idle; 30 - 31 - idle = kcs->cpustat[CPUTIME_IDLE]; 32 - if (cpu_online(cpu) && !nr_iowait_cpu(cpu)) 33 - idle += arch_idle_time(cpu); 34 - return idle; 35 - } 36 - 37 - static u64 get_iowait_time(struct kernel_cpustat *kcs, int cpu) 38 - { 39 - u64 iowait; 40 - 41 - iowait = kcs->cpustat[CPUTIME_IOWAIT]; 42 - if (cpu_online(cpu) && nr_iowait_cpu(cpu)) 43 - iowait += arch_idle_time(cpu); 44 - return iowait; 45 - } 46 - 47 - #else 48 - 49 25 u64 get_idle_time(struct kernel_cpustat *kcs, int cpu) 50 26 { 51 27 u64 idle, idle_usecs = -1ULL; ··· 53 77 54 78 return iowait; 55 79 } 56 - 57 - #endif 58 80 59 81 static void show_irq_gap(struct seq_file *p, unsigned int gap) 60 82 {