Home
last modified time | relevance | path

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

/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.c440 __sched long wait_woken(struct wait_queue_entry *wq_entry, unsigned int mode, long timeout) in wait_woken() argument
450 timeout = schedule_timeout(timeout); in wait_woken()
461 return timeout; in wait_woken()
Drt.c1420 rt_se->timeout = 0; in enqueue_task_rt()
2481 p->rt.timeout++; in watchdog()
2486 if (p->rt.timeout > next) { in watchdog()
Dcore.c3331 p->rt.timeout = 0; in __sched_fork()
5212 p->rt.timeout = 0; in rt_mutex_setprio()
6563 long __sched io_schedule_timeout(long timeout) in io_schedule_timeout() argument
6569 ret = schedule_timeout(timeout); in io_schedule_timeout()
/kernel/
Dhung_task.c89 static void check_hung_task(struct task_struct *t, unsigned long timeout) in check_hung_task() argument
113 if (time_is_after_jiffies(t->last_switch_time + timeout * HZ)) in check_hung_task()
177 static void check_hung_uninterruptible_tasks(unsigned long timeout) in check_hung_uninterruptible_tasks() argument
201 trace_android_vh_check_uninterruptible_tasks(t, timeout, &need_check); in check_hung_uninterruptible_tasks()
205 check_hung_task(t, timeout); in check_hung_uninterruptible_tasks()
223 unsigned long timeout) in hung_timeout_jiffies() argument
226 return timeout ? last_checked - jiffies + timeout * HZ : in hung_timeout_jiffies()
289 unsigned long timeout = sysctl_hung_task_timeout_secs; in watchdog() local
294 interval = timeout; in watchdog()
295 interval = min_t(unsigned long, interval, timeout); in watchdog()
[all …]
Dumh.c240 long usermodehelper_read_lock_wait(long timeout) in usermodehelper_read_lock_wait() argument
244 if (timeout < 0) in usermodehelper_read_lock_wait()
256 timeout = schedule_timeout(timeout); in usermodehelper_read_lock_wait()
257 if (!timeout) in usermodehelper_read_lock_wait()
263 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.c441 static int audit_set_backlog_wait_time(u32 timeout) in audit_set_backlog_wait_time() argument
444 &audit_backlog_wait_time, timeout); in audit_set_backlog_wait_time()
Dsignal.c3488 ktime_t *to = NULL, timeout = KTIME_MAX; in do_sigtimedwait() local
3496 timeout = timespec64_to_ktime(*ts); in do_sigtimedwait()
3497 to = &timeout; in do_sigtimedwait()
3508 if (!sig && timeout) { in do_sigtimedwait()
/kernel/locking/
Dsemaphore.c39 static noinline int __down_timeout(struct semaphore *sem, long timeout);
155 int down_timeout(struct semaphore *sem, long timeout) in down_timeout() argument
164 result = __down_timeout(sem, timeout); in down_timeout()
205 long timeout) in __down_common() argument
216 if (unlikely(timeout <= 0)) in __down_common()
220 timeout = schedule_timeout(timeout); in __down_common()
250 static noinline int __sched __down_timeout(struct semaphore *sem, long timeout) in __down_timeout() argument
252 return __down_common(sem, TASK_UNINTERRUPTIBLE, timeout); in __down_timeout()
Drtmutex.c1167 struct hrtimer_sleeper *timeout, in __rt_mutex_slowlock() argument
1186 if (timeout && !timeout->task) in __rt_mutex_slowlock()
1232 struct hrtimer_sleeper *timeout, in rt_mutex_slowlock() argument
1260 if (unlikely(timeout)) in rt_mutex_slowlock()
1261 hrtimer_start_expires(&timeout->timer, HRTIMER_MODE_ABS); in rt_mutex_slowlock()
1267 ret = __rt_mutex_slowlock(lock, state, timeout, &waiter); in rt_mutex_slowlock()
1284 if (unlikely(timeout)) in rt_mutex_slowlock()
1285 hrtimer_cancel(&timeout->timer); in rt_mutex_slowlock()
1409 struct hrtimer_sleeper *timeout, in rt_mutex_fastlock() argument
1420 struct hrtimer_sleeper *timeout, in rt_mutex_timed_fastlock() argument
[all …]
Dtest-ww_mutex.c70 unsigned long timeout = jiffies + TIMEOUT; in __test_mutex() local
79 } while (time_before(jiffies, timeout)); in __test_mutex()
345 unsigned long timeout; member
426 } while (!time_after(jiffies, stress->timeout)); in stress_inorder_work()
487 } while (!time_after(jiffies, stress->timeout)); in stress_reorder_work()
512 } while (!time_after(jiffies, stress->timeout)); in stress_one_work()
569 stress->timeout = jiffies + 2*HZ; in stress()
Drwsem.c452 time_after(jiffies, waiter->timeout)) { in rwsem_mark_wake()
1052 waiter.timeout = jiffies + RWSEM_WAIT_TIMEOUT; in rwsem_down_read_slowpath()
1192 waiter.timeout = jiffies + RWSEM_WAIT_TIMEOUT; in rwsem_down_write_slowpath()
1291 time_after(jiffies, waiter.timeout))) { in rwsem_down_write_slowpath()
/kernel/time/
Dtimer.c1808 struct process_timer *timeout = from_timer(timeout, t, timer); in process_timeout() local
1810 wake_up_process(timeout->task); in process_timeout()
1844 signed long __sched schedule_timeout(signed long timeout) in schedule_timeout() argument
1849 switch (timeout) in schedule_timeout()
1869 if (timeout < 0) { in schedule_timeout()
1871 "value %lx\n", timeout); in schedule_timeout()
1878 expire = timeout + jiffies; in schedule_timeout()
1889 timeout = expire - jiffies; in schedule_timeout()
1892 return timeout < 0 ? 0 : timeout; in schedule_timeout()
1900 signed long __sched schedule_timeout_interruptible(signed long timeout) in schedule_timeout_interruptible() argument
[all …]
Dposix-cpu-timers.c855 unsigned long rttime = tsk->rt.timeout * (USEC_PER_SEC / HZ); in check_thread_timers()
/kernel/futex/
Dcore.c402 futex_setup_timer(ktime_t *time, struct hrtimer_sleeper *timeout, in futex_setup_timer() argument
408 hrtimer_init_sleeper_on_stack(timeout, (flags & FLAGS_CLOCKRT) ? in futex_setup_timer()
415 hrtimer_set_expires_range_ns(&timeout->timer, *time, range_ns); in futex_setup_timer()
417 return timeout; in futex_setup_timer()
2599 struct hrtimer_sleeper *timeout) in futex_wait_queue_me() argument
2611 if (timeout) in futex_wait_queue_me()
2612 hrtimer_sleeper_start_expires(timeout, HRTIMER_MODE_ABS); in futex_wait_queue_me()
2624 if (!timeout || timeout->task) { in futex_wait_queue_me()
2707 struct hrtimer_sleeper timeout, *to; in futex_wait() local
2718 to = futex_setup_timer(abs_time, &timeout, flags, in futex_wait()
[all …]
/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/kcsan/
Dreport.c467 int timeout = max(kcsan_udelay_task, kcsan_udelay_interrupt); in set_other_info_task_blocking() local
487 if (timeout-- < 0) { in set_other_info_task_blocking()
/kernel/rcu/
DKconfig.debug84 int "RCU CPU stall timeout in seconds"
/kernel/printk/
Dprintk.c1266 unsigned long timeout; in boot_delay_msec() local
1275 timeout = jiffies + msecs_to_jiffies(boot_delay); in boot_delay_msec()
1284 if (time_after(jiffies, timeout)) in boot_delay_msec()
/kernel/power/
DKconfig221 int "Watchdog timeout in seconds"