Lines Matching full:idle

7  * The idle injection framework provides a way to force CPUs to enter idle
13 * All of the kthreads used for idle injection are created at init time.
15 * Next, the users of the the idle injection framework provide a cpumask via
19 * The idle + run duration is specified via separate helpers and that allows
20 * idle injection to be started.
22 * The idle injection kthreads will call play_idle() with the idle duration
25 * After all of them have been woken up, a timer is set to start the next idle
28 * The timer interrupt handler will wake up the idle injection kthreads for
31 * Idle injection is stopped synchronously and no leftover idle injection
35 * synchronization to prevent race conditions like starting idle injection
51 * @tsk: task injecting the idle cycles
60 * struct idle_inject_device - idle injection data
61 * @timer: idle injection period timer
62 * @idle_duration_us: duration of CPU idle time to inject
64 * @cpumask: mask of CPUs affected by idle injection
77 * idle_inject_wakeup - Wake up idle injection threads
78 * @ii_dev: target idle injection device
80 * Every idle injection task associated with the given idle injection device
96 * idle_inject_timer_fn - idle injection timer function
97 * @timer: idle injection hrtimer
99 * This function is called when the idle injection timer expires. It wakes up
100 * idle injection tasks associated with the timer and they, in turn, invoke
101 * play_idle() to inject a specified amount of CPU idle time.
122 * idle_inject_fn - idle injection work function
125 * This function calls play_idle() to inject a specified amount of CPU idle
145 * idle_inject_set_duration - idle and run duration update helper
147 * @idle_duration_us: CPU idle time to inject in microseconds
160 * idle_inject_get_duration - idle and run duration retrieval helper
162 * @idle_duration_us: memory location to store the current CPU idle time
173 * idle_inject_start - start idle injections
174 * @ii_dev: idle injection control device structure
176 * The function starts idle injection by first waking up all of the idle
177 * injection kthreads associated with @ii_dev to let them inject CPU idle time
178 * sets up a timer to start the next idle injection period.
180 * Return: -EINVAL if the CPU idle or CPU run time is not set or 0 on success.
190 pr_debug("Starting injecting idle cycles on CPUs '%*pbl'\n", in idle_inject_start()
204 * idle_inject_stop - stops idle injections
205 * @ii_dev: idle injection control device structure
207 * The function stops idle injection and waits for the threads to finish work.
208 * If CPU idle time is being injected when this function runs, then it will
211 * When it returns, there is no more idle injection kthread activity. The
219 pr_debug("Stopping idle injection on CPUs '%*pbl'\n", in idle_inject_stop()
225 * Stopping idle injection requires all of the idle injection kthreads in idle_inject_stop()
235 * goes offline with the should_run flag set so as to prevent its idle in idle_inject_stop()
250 * idle_inject_setup - prepare the current task for idle injection
278 * idle_inject_register - initialize idle injection on a set of CPUs
279 * @cpumask: CPUs to be affected by idle injection
281 * This function creates an idle injection control device structure for the
285 * Return: NULL if memory allocation fails, idle injection control device
326 * idle_inject_unregister - unregister idle injection control device
327 * @ii_dev: idle injection control device to unregister
329 * The function stops idle injection for the given control device,