Searched refs:ii_dev (Results 1 – 4 of 4) sorted by relevance
/Linux-v6.6/drivers/powercap/ |
D | idle_inject.c | 102 static void idle_inject_wakeup(struct idle_inject_device *ii_dev) in idle_inject_wakeup() argument 107 for_each_cpu_and(cpu, to_cpumask(ii_dev->cpumask), cpu_online_mask) { in idle_inject_wakeup() 127 struct idle_inject_device *ii_dev = in idle_inject_timer_fn() local 130 if (!ii_dev->update || (ii_dev->update && ii_dev->update())) in idle_inject_timer_fn() 131 idle_inject_wakeup(ii_dev); in idle_inject_timer_fn() 133 duration_us = READ_ONCE(ii_dev->run_duration_us); in idle_inject_timer_fn() 134 duration_us += READ_ONCE(ii_dev->idle_duration_us); in idle_inject_timer_fn() 150 struct idle_inject_device *ii_dev; in idle_inject_fn() local 153 ii_dev = per_cpu(idle_inject_device, cpu); in idle_inject_fn() 161 play_idle_precise(READ_ONCE(ii_dev->idle_duration_us) * NSEC_PER_USEC, in idle_inject_fn() [all …]
|
/Linux-v6.6/drivers/thermal/ |
D | cpuidle_cooling.c | 26 struct idle_inject_device *ii_dev; member 128 struct idle_inject_device *ii_dev = idle_cdev->ii_dev; in cpuidle_cooling_set_cur_state() local 134 idle_inject_get_duration(ii_dev, &runtime_us, &idle_duration_us); in cpuidle_cooling_set_cur_state() 138 idle_inject_set_duration(ii_dev, runtime_us, idle_duration_us); in cpuidle_cooling_set_cur_state() 141 idle_inject_start(ii_dev); in cpuidle_cooling_set_cur_state() 143 idle_inject_stop(ii_dev); in cpuidle_cooling_set_cur_state() 173 struct idle_inject_device *ii_dev; in __cpuidle_cooling_register() local 188 ii_dev = idle_inject_register(drv->cpumask); in __cpuidle_cooling_register() 189 if (!ii_dev) { in __cpuidle_cooling_register() 197 idle_inject_set_duration(ii_dev, TICK_USEC, idle_duration_us); in __cpuidle_cooling_register() [all …]
|
/Linux-v6.6/include/linux/ |
D | idle_inject.h | 19 void idle_inject_unregister(struct idle_inject_device *ii_dev); 21 int idle_inject_start(struct idle_inject_device *ii_dev); 23 void idle_inject_stop(struct idle_inject_device *ii_dev); 25 void idle_inject_set_duration(struct idle_inject_device *ii_dev, 29 void idle_inject_get_duration(struct idle_inject_device *ii_dev, 33 void idle_inject_set_latency(struct idle_inject_device *ii_dev,
|
/Linux-v6.6/drivers/thermal/intel/ |
D | intel_powerclamp.c | 560 static struct idle_inject_device *ii_dev; variable 586 idle_inject_set_duration(ii_dev, runtime, duration); in idle_inject_update() 604 idle_inject_set_duration(ii_dev, runtime, duration); in trigger_idle_injection() 605 idle_inject_start(ii_dev); in trigger_idle_injection() 618 ii_dev = idle_inject_register_full(idle_injection_cpu_mask, idle_inject_update); in powerclamp_idle_injection_register() 622 ii_dev = idle_inject_register(idle_injection_cpu_mask); in powerclamp_idle_injection_register() 625 if (!ii_dev) { in powerclamp_idle_injection_register() 630 idle_inject_set_duration(ii_dev, TICK_USEC, duration); in powerclamp_idle_injection_register() 631 idle_inject_set_latency(ii_dev, UINT_MAX); in powerclamp_idle_injection_register() 646 idle_inject_stop(ii_dev); in remove_idle_injection() [all …]
|