/kernel/sched/ |
D | completion.c | 82 long (*action)(long), long timeout, int state) in do_wait_for_common() argument 89 timeout = -ERESTARTSYS; in do_wait_for_common() 95 timeout = action(timeout); in do_wait_for_common() 97 } while (!x->done && timeout); in do_wait_for_common() 100 return timeout; in do_wait_for_common() 104 return timeout ?: 1; in do_wait_for_common() 109 long (*action)(long), long timeout, int state) in __wait_for_common() argument 116 timeout = do_wait_for_common(x, action, timeout, state); in __wait_for_common() 121 return timeout; in __wait_for_common() 125 wait_for_common(struct completion *x, long timeout, int state) in wait_for_common() argument [all …]
|
D | wait_bit.c | 70 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()
|
D | wait.c | 457 long wait_woken(struct wait_queue_entry *wq_entry, unsigned mode, long timeout) in wait_woken() argument 467 timeout = schedule_timeout(timeout); in wait_woken() 478 return timeout; in wait_woken()
|
D | rt.c | 1577 rt_se->timeout = 0; in enqueue_task_rt() 2723 p->rt.timeout++; in watchdog() 2728 if (p->rt.timeout > next) { in watchdog()
|
/kernel/locking/ |
D | semaphore.c | 40 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()
|
D | test-ww_mutex.c | 79 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()
|
D | rwsem.c | 363 unsigned long timeout; member 486 if (time_after(jiffies, waiter->timeout)) { in rwsem_mark_wake() 657 !time_after(jiffies, waiter->timeout))) in rwsem_try_write_lock() 1083 waiter.timeout = jiffies + RWSEM_WAIT_TIMEOUT; in rwsem_down_read_slowpath() 1181 waiter.timeout = jiffies + RWSEM_WAIT_TIMEOUT; in rwsem_down_write_slowpath()
|
D | rtmutex.c | 1591 struct hrtimer_sleeper *timeout, in rt_mutex_slowlock_block() argument 1604 if (timeout && !timeout->task) { in rt_mutex_slowlock_block()
|
/kernel/ |
D | hung_task.c | 91 static void check_hung_task(struct task_struct *t, unsigned long timeout) in check_hung_task() argument 115 if (time_is_after_jiffies(t->last_switch_time + timeout * HZ)) in check_hung_task() 181 static void check_hung_uninterruptible_tasks(unsigned long timeout) in check_hung_uninterruptible_tasks() argument 211 trace_android_vh_check_uninterruptible_tasks(t, timeout, &need_check); in check_hung_uninterruptible_tasks() 217 check_hung_task(t, timeout); in check_hung_uninterruptible_tasks() 236 unsigned long timeout) in hung_timeout_jiffies() argument 239 return timeout ? last_checked - jiffies + timeout * HZ : in hung_timeout_jiffies() 374 unsigned long timeout = sysctl_hung_task_timeout_secs; in watchdog() local 379 interval = timeout; in watchdog() 380 interval = min_t(unsigned long, interval, timeout); in watchdog() [all …]
|
D | umh.c | 240 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()
|
D | jump_label.c | 323 unsigned long timeout) in __static_key_slow_dec_deferred() argument 330 schedule_delayed_work(work, timeout); in __static_key_slow_dec_deferred() 345 key->timeout = rl; in jump_label_rate_limit()
|
D | audit.c | 438 static int audit_set_backlog_wait_time(u32 timeout) in audit_set_backlog_wait_time() argument 441 &audit_backlog_wait_time, timeout); in audit_set_backlog_wait_time()
|
D | signal.c | 3632 ktime_t *to = NULL, timeout = KTIME_MAX; in do_sigtimedwait() local 3641 timeout = timespec64_to_ktime(*ts); in do_sigtimedwait() 3642 to = &timeout; in do_sigtimedwait() 3653 if (!sig && timeout) { in do_sigtimedwait()
|
/kernel/time/ |
D | timer.c | 2095 struct process_timer *timeout = from_timer(timeout, t, timer); in process_timeout() local 2097 wake_up_process(timeout->task); in process_timeout() 2131 signed long __sched schedule_timeout(signed long timeout) in schedule_timeout() argument 2136 switch (timeout) in schedule_timeout() 2156 if (timeout < 0) { in schedule_timeout() 2158 "value %lx\n", timeout); in schedule_timeout() 2165 expire = timeout + jiffies; in schedule_timeout() 2176 timeout = expire - jiffies; in schedule_timeout() 2179 return timeout < 0 ? 0 : timeout; in schedule_timeout() 2187 signed long __sched schedule_timeout_interruptible(signed long timeout) in schedule_timeout_interruptible() argument [all …]
|
/kernel/futex/ |
D | syscalls.c | 86 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()
|
D | waitwake.c | 334 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()
|
D | requeue.c | 693 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()
|
D | core.c | 136 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()
|
D | futex.h | 123 futex_setup_timer(ktime_t *time, struct hrtimer_sleeper *timeout, 146 struct hrtimer_sleeper *timeout);
|
D | pi.c | 932 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 | .kunitconfig | 22 # (or alter) this, in conjunction with setting a different test timeout with, 23 # for example, the --timeout kunit_tool option.
|
D | report.c | 531 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/ |
D | ring_buffer_benchmark.c | 232 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/ |
D | Kconfig.debug | 72 int "RCU CPU stall timeout in seconds" 83 int "Expedited RCU CPU stall timeout in milliseconds" 104 periods begin at half of the first RCU stall timeout.
|
/kernel/printk/ |
D | printk.c | 1293 unsigned long timeout; in boot_delay_msec() local 1302 timeout = jiffies + msecs_to_jiffies(boot_delay); in boot_delay_msec() 1311 if (time_after(jiffies, timeout)) in boot_delay_msec()
|