Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 25 of 28) sorted by relevance

12

/kernel/sched/
Dcompletion.c72 long (*action)(long), long timeout, int state) in do_wait_for_common() argument
79 timeout = -ERESTARTSYS; in do_wait_for_common()
85 timeout = action(timeout); in do_wait_for_common()
87 } while (!x->done && timeout); in do_wait_for_common()
90 return timeout; in do_wait_for_common()
94 return timeout ?: 1; in do_wait_for_common()
99 long (*action)(long), long timeout, int state) in __wait_for_common() argument
106 timeout = do_wait_for_common(x, action, timeout, state); in __wait_for_common()
111 return timeout; in __wait_for_common()
115 wait_for_common(struct completion *x, long timeout, int state) in wait_for_common() argument
[all …]
Dwait_bit.c70 unsigned mode, unsigned long timeout) in out_of_line_wait_on_bit_timeout() argument
75 wq_entry.key.timeout = jiffies + timeout; in out_of_line_wait_on_bit_timeout()
221 if (time_after_eq(now, word->timeout)) in bit_wait_timeout()
223 schedule_timeout(word->timeout - now); in bit_wait_timeout()
235 if (time_after_eq(now, word->timeout)) in bit_wait_io_timeout()
237 io_schedule_timeout(word->timeout - now); in bit_wait_io_timeout()
Dwait.c452 long wait_woken(struct wait_queue_entry *wq_entry, unsigned mode, long timeout) in wait_woken() argument
462 timeout = schedule_timeout(timeout); in wait_woken()
473 return timeout; in wait_woken()
Drt.c1577 rt_se->timeout = 0; in enqueue_task_rt()
2726 p->rt.timeout++; in watchdog()
2731 if (p->rt.timeout > next) { in watchdog()
/kernel/locking/
Dsemaphore.c40 static noinline int __down_timeout(struct semaphore *sem, long timeout);
159 int __sched down_timeout(struct semaphore *sem, long timeout) in down_timeout() argument
169 result = __down_timeout(sem, timeout); in down_timeout()
210 long timeout) in ___down_common() argument
221 if (unlikely(timeout <= 0)) in ___down_common()
225 timeout = schedule_timeout(timeout); in ___down_common()
241 long timeout) in __down_common() argument
246 ret = ___down_common(sem, state, timeout); in __down_common()
267 static noinline int __sched __down_timeout(struct semaphore *sem, long timeout) in __down_timeout() argument
269 return __down_common(sem, TASK_UNINTERRUPTIBLE, timeout); in __down_timeout()
Dtest-ww_mutex.c79 unsigned long timeout = jiffies + TIMEOUT; in __test_mutex() local
88 } while (time_before(jiffies, timeout)); in __test_mutex()
385 unsigned long timeout; member
466 } while (!time_after(jiffies, stress->timeout)); in stress_inorder_work()
527 } while (!time_after(jiffies, stress->timeout)); in stress_reorder_work()
552 } while (!time_after(jiffies, stress->timeout)); in stress_one_work()
609 stress->timeout = jiffies + 2*HZ; in stress()
Drwsem.c350 unsigned long timeout; member
473 if (time_after(jiffies, waiter->timeout)) { in rwsem_mark_wake()
643 !time_after(jiffies, waiter->timeout))) in rwsem_try_write_lock()
1064 waiter.timeout = jiffies + RWSEM_WAIT_TIMEOUT; in rwsem_down_read_slowpath()
1164 waiter.timeout = jiffies + RWSEM_WAIT_TIMEOUT; in rwsem_down_write_slowpath()
Drtmutex.c1537 struct hrtimer_sleeper *timeout, in rt_mutex_slowlock_block() argument
1550 if (timeout && !timeout->task) { in rt_mutex_slowlock_block()
/kernel/
Dhung_task.c92 static void check_hung_task(struct task_struct *t, unsigned long timeout) in check_hung_task() argument
116 if (time_is_after_jiffies(t->last_switch_time + timeout * HZ)) in check_hung_task()
180 static void check_hung_uninterruptible_tasks(unsigned long timeout) in check_hung_uninterruptible_tasks() argument
210 trace_android_vh_check_uninterrupt_tasks(t, timeout, &need_check); in check_hung_uninterruptible_tasks()
216 check_hung_task(t, timeout); in check_hung_uninterruptible_tasks()
235 unsigned long timeout) in hung_timeout_jiffies() argument
238 return timeout ? last_checked - jiffies + timeout * HZ : in hung_timeout_jiffies()
373 unsigned long timeout = sysctl_hung_task_timeout_secs; in watchdog() local
378 interval = timeout; in watchdog()
379 interval = min_t(unsigned long, interval, timeout); in watchdog()
[all …]
Dumh.c243 long usermodehelper_read_lock_wait(long timeout) in usermodehelper_read_lock_wait() argument
247 if (timeout < 0) in usermodehelper_read_lock_wait()
259 timeout = schedule_timeout(timeout); in usermodehelper_read_lock_wait()
260 if (!timeout) in usermodehelper_read_lock_wait()
266 return timeout; in usermodehelper_read_lock_wait()
Djump_label.c282 unsigned long timeout) in __static_key_slow_dec_deferred() argument
289 schedule_delayed_work(work, timeout); in __static_key_slow_dec_deferred()
304 key->timeout = rl; in jump_label_rate_limit()
Daudit.c439 static int audit_set_backlog_wait_time(u32 timeout) in audit_set_backlog_wait_time() argument
442 &audit_backlog_wait_time, timeout); in audit_set_backlog_wait_time()
Dsignal.c3593 ktime_t *to = NULL, timeout = KTIME_MAX; in do_sigtimedwait() local
3602 timeout = timespec64_to_ktime(*ts); in do_sigtimedwait()
3603 to = &timeout; in do_sigtimedwait()
3614 if (!sig && timeout) { in do_sigtimedwait()
/kernel/time/
Dtimer.c1866 struct process_timer *timeout = from_timer(timeout, t, timer); in process_timeout() local
1868 wake_up_process(timeout->task); in process_timeout()
1902 signed long __sched schedule_timeout(signed long timeout) in schedule_timeout() argument
1907 switch (timeout) in schedule_timeout()
1927 if (timeout < 0) { in schedule_timeout()
1929 "value %lx\n", timeout); in schedule_timeout()
1936 expire = timeout + jiffies; in schedule_timeout()
1947 timeout = expire - jiffies; in schedule_timeout()
1950 return timeout < 0 ? 0 : timeout; in schedule_timeout()
1958 signed long __sched schedule_timeout_interruptible(signed long timeout) in schedule_timeout_interruptible() argument
[all …]
/kernel/futex/
Dsyscalls.c86 long do_futex(u32 __user *uaddr, int op, u32 val, ktime_t *timeout, in do_futex() argument
108 return futex_wait(uaddr, flags, val, timeout, val3); in do_futex()
124 return futex_lock_pi(uaddr, flags, timeout, 0); in do_futex()
131 return futex_wait_requeue_pi(uaddr, flags, val, timeout, val3, in do_futex()
250 struct __kernel_timespec __user *, timeout, clockid_t, clockid) in SYSCALL_DEFINE5() argument
265 if (timeout) { in SYSCALL_DEFINE5()
276 if (get_timespec64(&ts, timeout)) in SYSCALL_DEFINE5()
298 ret = futex_wait_multiple(futexv, nr_futexes, timeout ? &to : NULL); in SYSCALL_DEFINE5()
303 if (timeout) { in SYSCALL_DEFINE5()
Dwaitwake.c334 struct hrtimer_sleeper *timeout) in futex_wait_queue() argument
346 if (timeout) in futex_wait_queue()
347 hrtimer_sleeper_start_expires(timeout, HRTIMER_MODE_ABS); in futex_wait_queue()
359 if (!timeout || timeout->task) { in futex_wait_queue()
641 struct hrtimer_sleeper timeout, *to; in futex_wait() local
652 to = futex_setup_timer(abs_time, &timeout, flags, in futex_wait()
Drequeue.c693 struct hrtimer_sleeper *timeout) in handle_early_requeue_pi_wakeup() argument
715 if (timeout && !timeout->task) in handle_early_requeue_pi_wakeup()
766 struct hrtimer_sleeper timeout, *to; in futex_wait_requeue_pi() local
783 to = futex_setup_timer(abs_time, &timeout, flags, in futex_wait_requeue_pi()
Dcore.c136 futex_setup_timer(ktime_t *time, struct hrtimer_sleeper *timeout, in futex_setup_timer() argument
142 hrtimer_init_sleeper_on_stack(timeout, (flags & FLAGS_CLOCKRT) ? in futex_setup_timer()
149 hrtimer_set_expires_range_ns(&timeout->timer, *time, range_ns); in futex_setup_timer()
151 return timeout; in futex_setup_timer()
Dfutex.h123 futex_setup_timer(ktime_t *time, struct hrtimer_sleeper *timeout,
146 struct hrtimer_sleeper *timeout);
Dpi.c932 struct hrtimer_sleeper timeout, *to; in futex_lock_pi() local
945 to = futex_setup_timer(time, &timeout, flags, 0); in futex_lock_pi()
/kernel/kcsan/
D.kunitconfig22 # (or alter) this, in conjunction with setting a different test timeout with,
23 # for example, the --timeout kunit_tool option.
Dreport.c531 int timeout = max(kcsan_udelay_task, kcsan_udelay_interrupt); in set_other_info_task_blocking() local
551 if (timeout-- < 0) { in set_other_info_task_blocking()
/kernel/trace/
Dring_buffer_benchmark.c232 ktime_t start_time, end_time, timeout; in ring_buffer_producer() local
247 timeout = ktime_add_ns(start_time, RUN_TIME * NSEC_PER_SEC); in ring_buffer_producer()
283 } while (ktime_before(end_time, timeout) && !break_test()); in ring_buffer_producer()
/kernel/rcu/
DKconfig.debug75 int "RCU CPU stall timeout in seconds"
86 int "Expedited RCU CPU stall timeout in milliseconds"
/kernel/printk/
Dprintk.c1235 unsigned long timeout; in boot_delay_msec() local
1244 timeout = jiffies + msecs_to_jiffies(boot_delay); in boot_delay_msec()
1253 if (time_after(jiffies, timeout)) in boot_delay_msec()

12