Home
last modified time | relevance | path

Searched refs:idle_duration_us (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.10/drivers/powercap/
Didle_inject.c70 unsigned int idle_duration_us; member
115 duration_us += READ_ONCE(ii_dev->idle_duration_us); in idle_inject_timer_fn()
144 play_idle_precise(READ_ONCE(ii_dev->idle_duration_us) * NSEC_PER_USEC, in idle_inject_fn()
155 unsigned int idle_duration_us) in idle_inject_set_duration() argument
157 if (run_duration_us && idle_duration_us) { in idle_inject_set_duration()
159 WRITE_ONCE(ii_dev->idle_duration_us, idle_duration_us); in idle_inject_set_duration()
170 unsigned int *idle_duration_us) in idle_inject_get_duration() argument
173 *idle_duration_us = READ_ONCE(ii_dev->idle_duration_us); in idle_inject_get_duration()
198 unsigned int idle_duration_us = READ_ONCE(ii_dev->idle_duration_us); in idle_inject_start() local
201 if (!idle_duration_us || !run_duration_us) in idle_inject_start()
[all …]
/Linux-v5.10/drivers/thermal/
Dcpuidle_cooling.c55 static unsigned int cpuidle_cooling_runtime(unsigned int idle_duration_us, in cpuidle_cooling_runtime() argument
61 return ((idle_duration_us * 100) / state) - idle_duration_us; in cpuidle_cooling_runtime()
131 unsigned int runtime_us, idle_duration_us; in cpuidle_cooling_set_cur_state() local
135 idle_inject_get_duration(ii_dev, &runtime_us, &idle_duration_us); in cpuidle_cooling_set_cur_state()
137 runtime_us = cpuidle_cooling_runtime(idle_duration_us, state); in cpuidle_cooling_set_cur_state()
139 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
200 of_property_read_u32(np, "duration-us", &idle_duration_us); in __cpuidle_cooling_register()
203 idle_inject_set_duration(ii_dev, TICK_USEC, idle_duration_us); in __cpuidle_cooling_register()
218 dev_name, idle_duration_us, latency_us); in __cpuidle_cooling_register()
/Linux-v5.10/include/linux/
Didle_inject.h24 unsigned int idle_duration_us);
28 unsigned int *idle_duration_us);