Home
last modified time | relevance | path

Searched refs:jiffies (Results 1 – 25 of 53) sorted by relevance

123

/kernel/rcu/
Dtree_stall.h64 unsigned long j = jiffies; in rcu_gp_might_be_stalled()
144 unsigned long j = jiffies; in record_gp_stall_check_time()
161 WRITE_ONCE(rdp->last_fqs_resched, jiffies); in zero_cpu_stall_ticks()
175 if (time_after(jiffies, j) && rcu_state.gp_kthread && in rcu_stall_kick_kthreads()
363 rdp->last_accelerate & 0xffff, jiffies & 0xffff, in print_cpu_stall_fast_no_hz()
401 unsigned long j = jiffies - READ_ONCE(rcu_state.gp_activity); in rcu_is_gp_kthread_starving()
512 time_after(jiffies, jiffies_fqs + RCU_STALL_MIGHT_MIN) && in rcu_check_gp_kthread_expired_fqs_timer()
516 rcu_state.name, (jiffies - jiffies_fqs), in rcu_check_gp_kthread_expired_fqs_timer()
566 smp_processor_id(), (long)(jiffies - gps), in print_other_cpu_stall()
578 j = jiffies; in print_other_cpu_stall()
[all …]
Drcutorture.c272 return shutdown_secs && time_after(jiffies, shutdown_jiffies - 30 * HZ); in shutdown_time_arrived()
928 unsigned long end = jiffies; in rcu_torture_boost_failed()
942 j = jiffies; in rcu_torture_boost_failed()
963 *start = jiffies; in rcu_torture_boost_failed()
991 while (time_before(jiffies, oldstarttime)) { in rcu_torture_boost()
992 schedule_timeout_interruptible(oldstarttime - jiffies); in rcu_torture_boost()
1001 while (time_before(jiffies, endtime)) { in rcu_torture_boost()
1009 gp_state_time = jiffies; in rcu_torture_boost()
1037 boost_starttime = jiffies + test_boost_interval * HZ; in rcu_torture_boost()
1074 fqs_resume_time = jiffies + fqs_stutter * HZ; in rcu_torture_fqs()
[all …]
Dtree_plugin.h736 time_after(jiffies, rcu_state.gp_start + HZ)) in rcu_flavor_sched_clock_irq()
1125 (!time_after(rnp->boost_time, jiffies) || rcu_state.cbovld))) { in rcu_initiate_boost()
1152 rnp->boost_time = jiffies + RCU_BOOST_DELAY_JIFFIES; in rcu_preempt_boost_start_gp()
1330 if (jiffies == rdp->last_advance_all) in rcu_try_advance_all_cbs()
1332 rdp->last_advance_all = jiffies; in rcu_try_advance_all_cbs()
1379 rdp->last_accelerate = jiffies; in rcu_needs_cpu()
1382 dj = round_up(rcu_idle_gp_delay + jiffies, rcu_idle_gp_delay) - jiffies; in rcu_needs_cpu()
1422 if (rdp->last_accelerate == jiffies) in rcu_prepare_for_idle()
1424 rdp->last_accelerate = jiffies; in rcu_prepare_for_idle()
1467 time_before(jiffies, READ_ONCE(rcu_state.gp_start) + HZ))) in rcu_nohz_full_cpu()
Dtree.c1293 (time_after(jiffies, rcu_state.gp_start + jtsq * 2) || in rcu_implicit_dynticks_qs()
1294 time_after(jiffies, rcu_state.jiffies_resched) || in rcu_implicit_dynticks_qs()
1299 } else if (time_after(jiffies, rcu_state.gp_start + jtsq)) { in rcu_implicit_dynticks_qs()
1312 (time_after(jiffies, READ_ONCE(rdp->last_fqs_resched) + jtsq * 3) || in rcu_implicit_dynticks_qs()
1316 WRITE_ONCE(rdp->last_fqs_resched, jiffies); in rcu_implicit_dynticks_qs()
1326 if (time_after(jiffies, rcu_state.jiffies_resched)) { in rcu_implicit_dynticks_qs()
1327 if (time_after(jiffies, in rcu_implicit_dynticks_qs()
1330 WRITE_ONCE(rdp->last_fqs_resched, jiffies); in rcu_implicit_dynticks_qs()
1422 WRITE_ONCE(rcu_state.gp_req_activity, jiffies); in rcu_start_this_gp()
1479 WRITE_ONCE(rcu_state.gp_wake_time, jiffies); in rcu_gp_kthread_wake()
[all …]
Dtasks.h135 rtp->gp_jiffies = jiffies; in set_tasks_gp_state()
225 rtp->gp_start = jiffies; in rcu_tasks_kthread()
286 jiffies - data_race(rtp->gp_jiffies), in show_rcu_tasks_generic_gp_kthread()
334 lastreport = jiffies; in rcu_tasks_wait_gp()
352 needreport = rtst > 0 && time_after(jiffies, lastreport + rtst); in rcu_tasks_wait_gp()
354 lastreport = jiffies; in rcu_tasks_wait_gp()
1030 time_after(jiffies + 1, rcu_tasks_trace.gp_start + rcu_task_ipi_delay)) { in trc_wait_for_one_reader()
Dtree_nocb.h307 mod_timer(&rdp_gp->nocb_timer, jiffies + jiffies_till_flush); in wake_nocb_gp_defer()
310 mod_timer(&rdp_gp->nocb_timer, jiffies + 2); in wake_nocb_gp_defer()
314 mod_timer(&rdp_gp->nocb_timer, jiffies + 1); in wake_nocb_gp_defer()
426 unsigned long j = jiffies; in rcu_nocb_try_bypass()
608 j = jiffies; in __call_rcu_nocb_wake()
691 unsigned long j = jiffies; in nocb_gp_wait()
1097 WARN_ON_ONCE(!rcu_nocb_flush_bypass(rdp, NULL, jiffies, false)); in rcu_nocb_rdp_deoffload()
1531 jiffies - rdp->nocb_bypass_first, in show_rcu_nocb_state()
1532 jiffies - rdp->nocb_nobypass_last, in show_rcu_nocb_state()
/kernel/
Dhung_task.c111 t->last_switch_time = jiffies; in check_hung_task()
133 t->comm, t->pid, (jiffies - t->last_switch_time) / HZ); in check_hung_task()
181 unsigned long last_break = jiffies; in check_hung_uninterruptible_tasks()
197 if (time_after(jiffies, last_break + HUNG_TASK_LOCK_BREAK)) { in check_hung_uninterruptible_tasks()
200 last_break = jiffies; in check_hung_uninterruptible_tasks()
227 return timeout ? last_checked - jiffies + timeout * HZ : in hung_timeout_jiffies()
285 unsigned long hung_last_checked = jiffies; in watchdog()
302 hung_last_checked = jiffies; in watchdog()
Dtorture.c213 starttime = jiffies; in torture_offline()
235 delta = jiffies - starttime; in torture_offline()
273 starttime = jiffies; in torture_online()
293 delta = jiffies - starttime; in torture_online()
Dworkqueue.c1182 pwq->pool->watchdog_ts = jiffies; in pwq_activate_inactive_work()
1532 pwq->pool->watchdog_ts = jiffies; in __queue_work()
1692 timer->expires = jiffies + delay; in __queue_delayed_work()
1825 worker->last_active = jiffies; in worker_enter_idle()
1831 mod_timer(&pool->idle_timer, jiffies + IDLE_WORKER_TIMEOUT); in worker_enter_idle()
2047 if (time_before(jiffies, expires)) { in idle_worker_timeout()
2103 mod_timer(&pool->mayday_timer, jiffies + MAYDAY_INTERVAL); in pool_mayday_timeout()
2132 mod_timer(&pool->mayday_timer, jiffies + MAYDAY_INITIAL_TIMEOUT); in maybe_create_worker()
2460 pool->watchdog_ts = jiffies; in worker_thread()
2564 pool->watchdog_ts = jiffies; in rescuer_thread()
[all …]
/kernel/sched/
Dloadavg.c223 if (!time_before(jiffies, READ_ONCE(calc_load_update))) in calc_load_write_idx()
272 if (time_before(jiffies, this_rq->calc_load_update)) in calc_load_nohz_stop()
280 if (time_before(jiffies, this_rq->calc_load_update + 10)) in calc_load_nohz_stop()
310 if (!time_before(jiffies, sample_window + 10)) { in calc_global_nohz()
314 delta = jiffies - sample_window - 10; in calc_global_nohz()
356 if (time_before(jiffies, sample_window + 10)) in calc_global_load()
390 if (time_before(jiffies, this_rq->calc_load_update)) in calc_global_load_tick()
Dwait_bit.c75 wq_entry.key.timeout = jiffies + timeout; in out_of_line_wait_on_bit_timeout()
219 unsigned long now = READ_ONCE(jiffies); in bit_wait_timeout()
233 unsigned long now = READ_ONCE(jiffies); in bit_wait_io_timeout()
Dautogroup.c226 if (!capable(CAP_SYS_ADMIN) && time_before(jiffies, next)) in proc_sched_autogroup_set_nice()
229 next = HZ / 10 + jiffies; in proc_sched_autogroup_set_nice()
/kernel/time/
Dtimer.c368 unsigned long j0 = jiffies; in __round_jiffies_relative()
445 unsigned long j0 = jiffies; in __round_jiffies_up_relative()
900 unsigned long jnow = READ_ONCE(jiffies); in forward_timer_base()
1721 if (time_before(jiffies, base->next_expiry)) in __run_timers()
1727 while (time_after_eq(jiffies, base->clk) && in __run_timers()
1728 time_after_eq(jiffies, base->next_expiry)) { in __run_timers()
1770 if (time_before(jiffies, base->next_expiry)) { in run_local_timers()
1775 if (time_before(jiffies, base->next_expiry)) in run_local_timers()
1789 PRANDOM_ADD_NOISE(jiffies, user_tick, p, 0); in update_process_times()
1885 expire = timeout + jiffies; in schedule_timeout()
[all …]
Djiffies.c18 return (u64) jiffies; in jiffies_read()
62 EXPORT_SYMBOL(jiffies);
Dtick-sched.c219 if (ts->last_tick_jiffies != jiffies) { in tick_sched_do_timer()
221 ts->last_tick_jiffies = READ_ONCE(jiffies); in tick_sched_do_timer()
226 ts->last_tick_jiffies = READ_ONCE(jiffies); in tick_sched_do_timer()
819 basejiff = jiffies; in tick_nohz_next_event()
1289 ticks = jiffies - ts->idle_jiffies; in tick_nohz_account_idle_time()
DMakefile3 obj-y += timekeeping.o ntp.o clocksource.o jiffies.o timer_list.o
/kernel/irq/
Dspurious.c172 jiffies + POLL_SPURIOUS_IRQ_INTERVAL); in poll_spurious_irqs()
392 if (time_after(jiffies, desc->last_unhandled + HZ/10)) in note_interrupt()
396 desc->last_unhandled = jiffies; in note_interrupt()
429 jiffies + POLL_SPURIOUS_IRQ_INTERVAL); in note_interrupt()
/kernel/locking/
Drwsem.c247 trace_android_vh_record_rwsem_lock_starttime(current, jiffies); in rwsem_read_trylock()
259 trace_android_vh_record_rwsem_lock_starttime(current, jiffies); in rwsem_write_trylock()
450 if (time_after(jiffies, waiter->timeout)) { in rwsem_mark_wake()
593 !time_after(jiffies, waiter->timeout))) in rwsem_try_write_lock()
988 trace_android_vh_record_rwsem_lock_starttime(current, jiffies); in rwsem_down_read_slowpath()
995 waiter.timeout = jiffies + RWSEM_WAIT_TIMEOUT; in rwsem_down_read_slowpath()
1068 trace_android_vh_record_rwsem_lock_starttime(current, jiffies); in rwsem_down_read_slowpath()
1094 trace_android_vh_record_rwsem_lock_starttime(current, jiffies); in rwsem_down_write_slowpath()
1104 waiter.timeout = jiffies + RWSEM_WAIT_TIMEOUT; in rwsem_down_write_slowpath()
1193 trace_android_vh_record_rwsem_lock_starttime(current, jiffies); in rwsem_down_write_slowpath()
[all …]
Dtest-ww_mutex.c70 unsigned long timeout = jiffies + TIMEOUT; in __test_mutex()
79 } while (time_before(jiffies, timeout)); in __test_mutex()
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()
Dmutex.c169 trace_android_vh_record_mutex_lock_starttime(current, jiffies); in __mutex_trylock_fast()
623 trace_android_vh_record_mutex_lock_starttime(current, jiffies); in __mutex_lock_common()
734 trace_android_vh_record_mutex_lock_starttime(current, jiffies); in __mutex_lock_common()
1058 trace_android_vh_record_mutex_lock_starttime(current, jiffies); in mutex_trylock()
Drtmutex_api.c34 trace_android_vh_record_rtmutex_lock_starttime(current, jiffies); in __rt_mutex_lock_common()
107 trace_android_vh_record_rtmutex_lock_starttime(current, jiffies); in rt_mutex_trylock()
/kernel/power/
Dprocess.c46 end_time = jiffies + msecs_to_jiffies(freeze_timeout_msecs); in try_to_freeze_tasks()
68 if (!todo || time_after(jiffies, end_time)) in try_to_freeze_tasks()
Dsuspend_test.c33 suspend_test_start_time = jiffies; in suspend_test_start()
38 long nj = jiffies - suspend_test_start_time; in suspend_test_finish()
/kernel/kcsan/
Dreport.c127 invalid_before = jiffies - msecs_to_jiffies(CONFIG_KCSAN_REPORT_ONCE_IN_MS); in rate_limit_report()
159 use_entry->time = jiffies; in rate_limit_report()
Dkcsan_test.c63 end_time = jiffies + msecs_to_jiffies(CONFIG_KCSAN_REPORT_ONCE_IN_MS + 500); in begin_test_checks()
74 if (!stop && time_before(jiffies, end_time)) { in end_test_checks()
391 sink_value((long)jiffies); in test_kernel_jiffies_reader()
1098 mod_timer(&timer, jiffies + 1); in access_thread()

123