Lines Matching +full:current +full:- +full:mode
1 // SPDX-License-Identifier: GPL-2.0
12 #include "tick-internal.h"
27 wake_up_process(timeout->task); in process_timeout()
31 * schedule_timeout - sleep until timeout
34 * Make the current task sleep until @timeout jiffies have elapsed.
35 * The function behavior depends on the current task state
38 * %TASK_RUNNING - the scheduler is called, but the task does not sleep
42 * %TASK_UNINTERRUPTIBLE - at least @timeout jiffies are guaranteed to
43 * pass before the routine returns unless the current task is explicitly
46 * %TASK_INTERRUPTIBLE - the routine may return early if a signal is
47 * delivered to the current task or the current task is explicitly woken
50 * The current task state is guaranteed to be %TASK_RUNNING when this
59 * to be non-negative.
95 timer.task = current; in schedule_timeout()
105 timeout = expire - jiffies; in schedule_timeout()
118 * schedule_timeout_interruptible - sleep until timeout (interruptible)
133 * schedule_timeout_killable - sleep until timeout (killable)
148 * schedule_timeout_uninterruptible - sleep until timeout (uninterruptible)
163 * schedule_timeout_idle - sleep until timeout (idle)
180 * schedule_hrtimeout_range_clock - sleep until timeout
183 * @mode: timer mode
190 const enum hrtimer_mode mode, clockid_t clock_id) in schedule_hrtimeout_range_clock() argument
208 return -EINTR; in schedule_hrtimeout_range_clock()
211 hrtimer_setup_sleeper_on_stack(&t, clock_id, mode); in schedule_hrtimeout_range_clock()
213 hrtimer_sleeper_start_expires(&t, mode); in schedule_hrtimeout_range_clock()
223 return !t.task ? 0 : -EINTR; in schedule_hrtimeout_range_clock()
228 * schedule_hrtimeout_range - sleep until timeout
231 * @mode: timer mode
233 * Make the current task sleep until the given expiry time has
235 * the current task state has been set (see set_current_state()).
243 * You can set the task state as follows -
245 * %TASK_UNINTERRUPTIBLE - at least @timeout time is guaranteed to
246 * pass before the routine returns unless the current task is explicitly
249 * %TASK_INTERRUPTIBLE - the routine may return early if a signal is
250 * delivered to the current task or the current task is explicitly woken
253 * The current task state is guaranteed to be TASK_RUNNING when this
258 * by an explicit wakeup, it returns -EINTR.
261 const enum hrtimer_mode mode) in schedule_hrtimeout_range() argument
263 return schedule_hrtimeout_range_clock(expires, delta, mode, in schedule_hrtimeout_range()
269 * schedule_hrtimeout - sleep until timeout
271 * @mode: timer mode
276 int __sched schedule_hrtimeout(ktime_t *expires, const enum hrtimer_mode mode) in schedule_hrtimeout() argument
278 return schedule_hrtimeout_range(expires, 0, mode); in schedule_hrtimeout()
283 * msleep - sleep safely even with waitqueue interruptions
323 * msleep_interruptible - sleep waiting for signals
338 while (timeout && !signal_pending(current)) in msleep_interruptible()
345 * usleep_range_state - Sleep for an approximate time in a given state
348 * @state: State of the current task that will be while sleeping
358 * In non-atomic context where the exact wakeup time is flexible, use
360 * responsiveness by avoiding the CPU-hogging busy-wait of udelay().
365 u64 delta = (u64)(max - min) * NSEC_PER_USEC; in usleep_range_state()