Lines Matching refs:rcpu
215 struct rackmeter_cpu *rcpu = in rackmeter_do_timer() local
217 struct rackmeter *rm = rcpu->rm; in rackmeter_do_timer()
224 total_nsecs = cur_nsecs - rcpu->prev_wall; in rackmeter_do_timer()
225 rcpu->prev_wall = cur_nsecs; in rackmeter_do_timer()
228 idle_nsecs = total_idle_nsecs - rcpu->prev_idle; in rackmeter_do_timer()
230 rcpu->prev_idle = total_idle_nsecs; in rackmeter_do_timer()
244 rcpu->zero = (cumm == 0); in rackmeter_do_timer()
254 schedule_delayed_work_on(cpu, &rcpu->sniffer, in rackmeter_do_timer()
274 struct rackmeter_cpu *rcpu; in rackmeter_init_cpu_sniffer() local
278 rcpu = &rm->cpu[cpu]; in rackmeter_init_cpu_sniffer()
279 rcpu->prev_idle = get_cpu_idle_time(cpu); in rackmeter_init_cpu_sniffer()
280 rcpu->prev_wall = jiffies64_to_nsecs(get_jiffies_64()); in rackmeter_init_cpu_sniffer()