Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/thermal/
A Dcpuidle_cooling.c53 static unsigned int cpuidle_cooling_runtime(unsigned int idle_duration_us, in cpuidle_cooling_runtime() argument
59 return ((idle_duration_us * 100) / state) - idle_duration_us; in cpuidle_cooling_runtime()
129 unsigned int runtime_us, idle_duration_us; in cpuidle_cooling_set_cur_state() local
133 idle_inject_get_duration(ii_dev, &runtime_us, &idle_duration_us); in cpuidle_cooling_set_cur_state()
135 runtime_us = cpuidle_cooling_runtime(idle_duration_us, state); in cpuidle_cooling_set_cur_state()
137 idle_inject_set_duration(ii_dev, runtime_us, idle_duration_us); in cpuidle_cooling_set_cur_state()
176 unsigned int idle_duration_us = TICK_USEC; in __cpuidle_cooling_register() local
193 of_property_read_u32(np, "duration-us", &idle_duration_us); in __cpuidle_cooling_register()
196 idle_inject_set_duration(ii_dev, TICK_USEC, idle_duration_us); in __cpuidle_cooling_register()
217 name, idle_duration_us, latency_us); in __cpuidle_cooling_register()
/linux-6.3-rc2/drivers/powercap/
A Didle_inject.c85 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-6.3-rc2/include/linux/
A Didle_inject.h27 unsigned int idle_duration_us);
31 unsigned int *idle_duration_us);

Completed in 5 milliseconds