Searched refs:idle_duration_us (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.6/drivers/thermal/ |
D | cpuidle_cooling.c | 54 static unsigned int cpuidle_cooling_runtime(unsigned int idle_duration_us, in cpuidle_cooling_runtime() argument 60 return ((idle_duration_us * 100) / state) - idle_duration_us; in cpuidle_cooling_runtime() 130 unsigned int runtime_us, idle_duration_us; 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() 136 runtime_us = cpuidle_cooling_runtime(idle_duration_us, state); in cpuidle_cooling_set_cur_state() 138 idle_inject_set_duration(ii_dev, runtime_us, idle_duration_us); in cpuidle_cooling_set_cur_state() 177 unsigned int idle_duration_us = TICK_USEC; in __cpuidle_cooling_register() local 194 of_property_read_u32(np, "duration-us", &idle_duration_us); in __cpuidle_cooling_register() 197 idle_inject_set_duration(ii_dev, TICK_USEC, idle_duration_us); in __cpuidle_cooling_register() 218 name, idle_duration_us, latency_us); in __cpuidle_cooling_register()
|
/Linux-v6.6/drivers/powercap/ |
D | idle_inject.c | 85 unsigned int idle_duration_us; member 134 duration_us += READ_ONCE(ii_dev->idle_duration_us); in idle_inject_timer_fn() 161 play_idle_precise(READ_ONCE(ii_dev->idle_duration_us) * NSEC_PER_USEC, in idle_inject_fn() 173 unsigned int idle_duration_us) in idle_inject_set_duration() argument 175 if (run_duration_us + idle_duration_us) { in idle_inject_set_duration() 177 WRITE_ONCE(ii_dev->idle_duration_us, idle_duration_us); in idle_inject_set_duration() 192 unsigned int *idle_duration_us) in idle_inject_get_duration() argument 195 *idle_duration_us = READ_ONCE(ii_dev->idle_duration_us); in idle_inject_get_duration() 223 unsigned int idle_duration_us = READ_ONCE(ii_dev->idle_duration_us); in idle_inject_start() local 226 if (!(idle_duration_us + run_duration_us)) in idle_inject_start() [all …]
|
/Linux-v6.6/include/linux/ |
D | idle_inject.h | 27 unsigned int idle_duration_us); 31 unsigned int *idle_duration_us);
|