Lines Matching refs:cpu_data

158 	struct teo_cpu *cpu_data = per_cpu_ptr(&teo_cpus, dev->cpu);  in teo_update()  local
163 cpu_data->short_idles -= cpu_data->short_idles >> DECAY_SHIFT; in teo_update()
165 if (cpu_data->artificial_wakeup) { in teo_update()
184 cpu_data->short_idles += PULSE; in teo_update()
187 cpu_data->short_idles += PULSE; in teo_update()
197 struct teo_bin *bin = &cpu_data->state_bins[i]; in teo_update()
204 if (target_residency_ns <= cpu_data->sleep_length_ns) { in teo_update()
211 cpu_data->tick_intercepts -= cpu_data->tick_intercepts >> DECAY_SHIFT; in teo_update()
219 cpu_data->state_bins[idx_timer].hits += PULSE; in teo_update()
221 cpu_data->state_bins[idx_duration].intercepts += PULSE; in teo_update()
223 cpu_data->tick_intercepts += PULSE; in teo_update()
226 cpu_data->total -= cpu_data->total >> DECAY_SHIFT; in teo_update()
227 cpu_data->total += PULSE; in teo_update()
271 struct teo_cpu *cpu_data = per_cpu_ptr(&teo_cpus, dev->cpu); in teo_select() local
297 cpu_data->sleep_length_ns = KTIME_MAX; in teo_select()
310 struct teo_bin *prev_bin = &cpu_data->state_bins[i-1]; in teo_select()
358 if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) { in teo_select()
372 struct teo_bin *bin = &cpu_data->state_bins[i]; in teo_select()
447 (2 * cpu_data->short_idles >= cpu_data->total || in teo_select()
452 cpu_data->sleep_length_ns = duration_ns; in teo_select()
473 cpu_data->tick_intercepts > cpu_data->total / 2 + cpu_data->total / 8) in teo_select()
507 struct teo_cpu *cpu_data = per_cpu_ptr(&teo_cpus, dev->cpu); in teo_reflect() local
511 (tick_nohz_idle_got_tick() && cpu_data->sleep_length_ns > TICK_NSEC)) { in teo_reflect()
517 cpu_data->artificial_wakeup = true; in teo_reflect()
519 cpu_data->artificial_wakeup = false; in teo_reflect()
531 struct teo_cpu *cpu_data = per_cpu_ptr(&teo_cpus, dev->cpu); in teo_enable_device() local
533 memset(cpu_data, 0, sizeof(*cpu_data)); in teo_enable_device()