Home
last modified time | relevance | path

Searched refs:kcpustat (Results 1 – 7 of 7) sorted by relevance

/linux/fs/proc/
A Dstat.c126 struct kernel_cpustat kcpustat; in show_stat() local
127 u64 *cpustat = kcpustat.cpustat; in show_stat()
129 kcpustat_cpu_fetch(&kcpustat, i); in show_stat()
134 idle += get_idle_time(&kcpustat, i); in show_stat()
135 iowait += get_iowait_time(&kcpustat, i); in show_stat()
166 struct kernel_cpustat kcpustat; in show_stat() local
167 u64 *cpustat = kcpustat.cpustat; in show_stat()
169 kcpustat_cpu_fetch(&kcpustat, i); in show_stat()
175 idle = get_idle_time(&kcpustat, i); in show_stat()
176 iowait = get_iowait_time(&kcpustat, i); in show_stat()
/linux/drivers/leds/trigger/
A Dledtrig-activity.c61 struct kernel_cpustat kcpustat; in led_activity_function() local
63 kcpustat_cpu_fetch(&kcpustat, i); in led_activity_function()
65 curr_used += kcpustat.cpustat[CPUTIME_USER] in led_activity_function()
66 + kcpustat.cpustat[CPUTIME_NICE] in led_activity_function()
67 + kcpustat.cpustat[CPUTIME_SYSTEM] in led_activity_function()
68 + kcpustat.cpustat[CPUTIME_SOFTIRQ] in led_activity_function()
69 + kcpustat.cpustat[CPUTIME_IRQ]; in led_activity_function()
/linux/include/linux/
A Dkernel_stat.h81 extern u64 kcpustat_field(struct kernel_cpustat *kcpustat,
85 static inline u64 kcpustat_field(struct kernel_cpustat *kcpustat, in kcpustat_field() argument
88 return kcpustat->cpustat[usage]; in kcpustat_field()
/linux/kernel/cgroup/
A Drstat.c417 struct kernel_cpustat kcpustat; in root_cgroup_cputime() local
418 u64 *cpustat = kcpustat.cpustat; in root_cgroup_cputime()
422 kcpustat_cpu_fetch(&kcpustat, i); in root_cgroup_cputime()
/linux/drivers/macintosh/
A Drack-meter.c84 struct kernel_cpustat *kcpustat = &kcpustat_cpu(cpu); in get_cpu_idle_time() local
87 retval = kcpustat->cpustat[CPUTIME_IDLE] + in get_cpu_idle_time()
88 kcpustat->cpustat[CPUTIME_IOWAIT]; in get_cpu_idle_time()
91 retval += kcpustat_field(kcpustat, CPUTIME_NICE, cpu); in get_cpu_idle_time()
/linux/drivers/cpufreq/
A Dcpufreq.c124 struct kernel_cpustat kcpustat; in get_cpu_idle_time_jiffy() local
131 kcpustat_cpu_fetch(&kcpustat, cpu); in get_cpu_idle_time_jiffy()
133 busy_time = kcpustat.cpustat[CPUTIME_USER]; in get_cpu_idle_time_jiffy()
134 busy_time += kcpustat.cpustat[CPUTIME_SYSTEM]; in get_cpu_idle_time_jiffy()
135 busy_time += kcpustat.cpustat[CPUTIME_IRQ]; in get_cpu_idle_time_jiffy()
136 busy_time += kcpustat.cpustat[CPUTIME_SOFTIRQ]; in get_cpu_idle_time_jiffy()
137 busy_time += kcpustat.cpustat[CPUTIME_STEAL]; in get_cpu_idle_time_jiffy()
138 busy_time += kcpustat.cpustat[CPUTIME_NICE]; in get_cpu_idle_time_jiffy()
/linux/kernel/sched/
A Dcputime.c962 u64 kcpustat_field(struct kernel_cpustat *kcpustat, in kcpustat_field() argument
965 u64 *cpustat = kcpustat->cpustat; in kcpustat_field()

Completed in 13 milliseconds