|
@@ -1742,15 +1742,19 @@ schedule_hrtimeout_range_clock(ktime_t *expires, u64 delta,
|
|
* You can set the task state as follows -
|
|
* You can set the task state as follows -
|
|
*
|
|
*
|
|
* %TASK_UNINTERRUPTIBLE - at least @timeout time is guaranteed to
|
|
* %TASK_UNINTERRUPTIBLE - at least @timeout time is guaranteed to
|
|
- * pass before the routine returns.
|
|
|
|
|
|
+ * pass before the routine returns unless the current task is explicitly
|
|
|
|
+ * woken up, (e.g. by wake_up_process()).
|
|
*
|
|
*
|
|
* %TASK_INTERRUPTIBLE - the routine may return early if a signal is
|
|
* %TASK_INTERRUPTIBLE - the routine may return early if a signal is
|
|
- * delivered to the current task.
|
|
|
|
|
|
+ * delivered to the current task or the current task is explicitly woken
|
|
|
|
+ * up.
|
|
*
|
|
*
|
|
* The current task state is guaranteed to be TASK_RUNNING when this
|
|
* The current task state is guaranteed to be TASK_RUNNING when this
|
|
* routine returns.
|
|
* routine returns.
|
|
*
|
|
*
|
|
- * Returns 0 when the timer has expired otherwise -EINTR
|
|
|
|
|
|
+ * Returns 0 when the timer has expired. If the task was woken before the
|
|
|
|
+ * timer expired by a signal (only possible in state TASK_INTERRUPTIBLE) or
|
|
|
|
+ * by an explicit wakeup, it returns -EINTR.
|
|
*/
|
|
*/
|
|
int __sched schedule_hrtimeout_range(ktime_t *expires, u64 delta,
|
|
int __sched schedule_hrtimeout_range(ktime_t *expires, u64 delta,
|
|
const enum hrtimer_mode mode)
|
|
const enum hrtimer_mode mode)
|
|
@@ -1772,15 +1776,19 @@ EXPORT_SYMBOL_GPL(schedule_hrtimeout_range);
|
|
* You can set the task state as follows -
|
|
* You can set the task state as follows -
|
|
*
|
|
*
|
|
* %TASK_UNINTERRUPTIBLE - at least @timeout time is guaranteed to
|
|
* %TASK_UNINTERRUPTIBLE - at least @timeout time is guaranteed to
|
|
- * pass before the routine returns.
|
|
|
|
|
|
+ * pass before the routine returns unless the current task is explicitly
|
|
|
|
+ * woken up, (e.g. by wake_up_process()).
|
|
*
|
|
*
|
|
* %TASK_INTERRUPTIBLE - the routine may return early if a signal is
|
|
* %TASK_INTERRUPTIBLE - the routine may return early if a signal is
|
|
- * delivered to the current task.
|
|
|
|
|
|
+ * delivered to the current task or the current task is explicitly woken
|
|
|
|
+ * up.
|
|
*
|
|
*
|
|
* The current task state is guaranteed to be TASK_RUNNING when this
|
|
* The current task state is guaranteed to be TASK_RUNNING when this
|
|
* routine returns.
|
|
* routine returns.
|
|
*
|
|
*
|
|
- * Returns 0 when the timer has expired otherwise -EINTR
|
|
|
|
|
|
+ * Returns 0 when the timer has expired. If the task was woken before the
|
|
|
|
+ * timer expired by a signal (only possible in state TASK_INTERRUPTIBLE) or
|
|
|
|
+ * by an explicit wakeup, it returns -EINTR.
|
|
*/
|
|
*/
|
|
int __sched schedule_hrtimeout(ktime_t *expires,
|
|
int __sched schedule_hrtimeout(ktime_t *expires,
|
|
const enum hrtimer_mode mode)
|
|
const enum hrtimer_mode mode)
|