We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8688f2f commit 8392853Copy full SHA for 8392853
drivers/macintosh/rack-meter.c
@@ -81,13 +81,14 @@ static int rackmeter_ignore_nice;
81
*/
82
static inline u64 get_cpu_idle_time(unsigned int cpu)
83
{
84
+ struct kernel_cpustat *kcpustat = &kcpustat_cpu(cpu);
85
u64 retval;
86
- retval = kcpustat_cpu(cpu).cpustat[CPUTIME_IDLE] +
87
- kcpustat_cpu(cpu).cpustat[CPUTIME_IOWAIT];
+ retval = kcpustat->cpustat[CPUTIME_IDLE] +
88
+ kcpustat->cpustat[CPUTIME_IOWAIT];
89
90
if (rackmeter_ignore_nice)
- retval += kcpustat_cpu(cpu).cpustat[CPUTIME_NICE];
91
+ retval += kcpustat_field(kcpustat, CPUTIME_NICE, cpu);
92
93
return retval;
94
}
0 commit comments