Home
last modified time | relevance | path

Searched full:tick (Results 1 – 25 of 362) sorted by relevance

12345678910>>...15

/linux/kernel/time/
H A Dtick-sched.h17 /* The CPU is in the tick idle mode */
19 /* The idle tick has been stopped */
22 * Indicator that the CPU is actively in the tick idle mode;
30 /* High resolution tick mode */
34 * struct tick_sched - sched tick emulation and no idle tick control/stats
37 * @got_idle_tick: Tick timer function has run with @inidle set
39 * @last_tick_jiffies: Value of jiffies seen on last tick
40 * @sched_timer: hrtimer to schedule the periodic tick in high
42 * @last_tick: Store the last tick expir
[all...]
H A Dtick-sched.c33 #include "tick-internal.h"
167 * Ensure that the tick is aligned to a multiple of in tick_init_jiffy_update()
206 * the timer tick.
278 * When we are idle and the tick is stopped, we have to touch in tick_sched_handle()
289 * In case the current tick fired too early past its expected in tick_sched_handle()
322 * In dynticks mode, tick reprogram is deferred: in tick_nohz_handler()
405 /* Empty, the tick restart happens on tick_nohz_irq_exit() */ in nohz_full_kick_func()
413 * re-evaluate its dependency on the tick and restart it if necessary.
427 * re-evaluate its dependency on the tick and restart it if necessary.
464 * we guarantee it sees the new tick dependenc in tick_nohz_kick_task()
[all...]
H A Dtick-common.c3 * This file contains the base functions to manage periodic tick
24 #include "tick-internal.h"
27 * Tick devices
31 * Tick next event: keeps track of the tick time. It's updated by the
32 * CPU which handles the tick and protected by jiffies_lock. There is
84 * Periodic tick
92 /* Keep track of the next tick event */ in tick_periodic()
150 * Setup the device for a periodic tick
183 * Setup the tick device
392 * Stop the tick and transfer the timekeeping job away from a dying cpu.
[all …]
H A Dtick-oneshot.c3 * This file contains functions which manage high resolution tick
18 #include "tick-internal.h"
83 * @handler: function to call when an event occurs on the tick device
85 * Return: 0 on success, -EINVAL if the tick device is not present,
98 pr_cont(" no tick device\n"); in tick_switch_to_oneshot()
139 * Return: 0 on success, -EINVAL if the tick device cannot switch
H A Dtick-legacy.c3 * Timer tick function for architectures that lack generic clockevents,
11 #include "tick-internal.h"
H A Djiffies.c13 #include "tick-internal.h"
28 * interrupt hardware to accurately tick at the
30 * for "tick-less" systems.
85 /* Calc cycles per tick */ in register_refined_jiffies()
/linux/sound/core/seq/
H A Dseq_timer.h13 snd_seq_tick_time_t cur_tick; /* current tick */
14 unsigned long resolution; /* time per tick in nsec */
15 unsigned long fraction; /* current time per tick in nsec */
24 unsigned int tempo; /* current tempo, us/tick */
28 struct snd_seq_timer_tick tick; /* current tick */ member
54 static inline void snd_seq_timer_update_tick(struct snd_seq_timer_tick *tick, in snd_seq_timer_update_tick() argument
57 if (tick->resolution > 0) { in snd_seq_timer_update_tick()
58 tick->fraction += resolution; in snd_seq_timer_update_tick()
59 tick->cur_tick += (unsigned int)(tick->fraction / tick->resolution); in snd_seq_timer_update_tick()
60 tick->fraction %= tick->resolution; in snd_seq_timer_update_tick()
H A Dseq_timer.c27 tmr->tick.resolution = (tmr->tempo * tmr->tempo_base) / tmr->ppq; in snd_seq_timer_set_tick_resolution()
33 tmr->tick.resolution = (tmr->tempo / tmr->ppq) * tmr->tempo_base; in snd_seq_timer_set_tick_resolution()
34 tmr->tick.resolution += s; in snd_seq_timer_set_tick_resolution()
36 if (tmr->tick.resolution <= 0) in snd_seq_timer_set_tick_resolution()
37 tmr->tick.resolution = 1; in snd_seq_timer_set_tick_resolution()
38 snd_seq_timer_update_tick(&tmr->tick, 0); in snd_seq_timer_set_tick_resolution()
106 tmr->tick.cur_tick = 0; in seq_timer_reset()
107 tmr->tick.fraction = 0; in seq_timer_reset()
145 /* calculate current tick */ in snd_seq_timer_interrupt()
146 snd_seq_timer_update_tick(&tmr->tick, resolutio in snd_seq_timer_interrupt()
[all...]
H A Dseq_prioq.c91 return (snd_seq_compare_tick_time(&a->time.tick, &b->time.tick)); in compare_timestamp()
108 if (a->time.tick > b->time.tick) in compare_timestamp_rel()
110 else if (a->time.tick == b->time.tick) in compare_timestamp_rel()
204 return snd_seq_compare_tick_time(current_time, &ev->time.tick); in event_is_ready()
310 if (cell->event.time.tick) in prioq_match()
359 res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick); in prioq_remove_match()
[all...]
H A Dseq_queue.c250 /* Process tick queue... */ in snd_seq_check_queue()
302 cell->event.time.tick += q->timer->tick.cur_tick; in snd_seq_enqueue_event()
577 sev.time.tick = q->timer->tick.cur_tick; in queue_broadcast_event()
620 if (snd_seq_timer_set_position_tick(q->timer, ev->data.queue.param.time.tick) == 0) { in snd_seq_queue_process_event()
698 snd_iprintf(buffer, "queued tick events : %d\n", snd_seq_prioq_avail(q->tickq)); in snd_seq_info_queues_read()
705 snd_iprintf(buffer, "current tick : %d\n", tmr->tick.cur_tick); in snd_seq_info_queues_read()
/linux/tools/testing/selftests/timers/
H A Dadjtick.c1 /* adjtimex() tick adjustment test
124 tx1.tick = tickval; in check_tick_adj()
131 printf("Estimating tick (act: %ld usec, %lld ppm): ", tickval, ppm); in check_tick_adj()
140 if (tx1.offset || tx1.freq || tx1.tick != tickval) { in check_tick_adj()
149 * cannot match the HZ tick size accurately, so we have a in check_tick_adj()
167 long tick, max, interval, err; in main() local
185 for (tick = (systick - max); tick < (systick + max); tick += interval) { in main()
186 if (check_tick_adj(tick)) { in main()
199 tx1.tick = systick; in main()
/linux/Documentation/timers/
H A Dhighres.rst100 System-level global event devices are used for the Linux periodic tick. Per-CPU
107 - system global periodic tick (jiffies update)
132 utilize the high resolution and dynamic tick functionalities without any change
136 adding the dynamic tick specific calls to the idle routine (a total of 3 lines
186 Once a system has switched to high resolution mode, the periodic tick is
190 The periodic tick functionality is provided by an per-cpu hrtimer. The callback
193 based periodic tick is designed to be extended with dynamic tick functionality.
195 timer and periodic events (jiffies tick, profiling, process accounting) on UP
200 separated from the tick bound timer softirq to allow accurate delivery of high
211 Dynamic ticks are the logical consequence of the hrtimer based periodic tick
[all …]
H A Dno_hz.rst128 adaptive-tick CPUs: At least one non-adaptive-tick CPU must remain
130 calls like gettimeofday() returns accurate values on adaptive-tick CPUs.
144 Just as with dyntick-idle mode, the benefits of adaptive-tick mode do
156 3. POSIX CPU timers prevent CPUs from entering adaptive-tick mode.
162 all of them over time. Adaptive-tick mode may prevent this
165 entering adaptive-tick mode.
167 5. Scheduler statistics for adaptive-tick CPUs may be computed
168 slightly differently than those for non-adaptive-tick CPUs.
181 enter either dyntick-idle mode or adaptive-tick mode, the most
193 or adaptive-tick mode. That said, note that it is up to userspace to
[all …]
/linux/arch/sparc/include/asm/
H A Dtimer_64.h47 unsigned int tick[GET_TICK_NINSTR]; member
56 unsigned long tick, tmp1, tmp2; in get_tick() local
80 /* read tick 2 instructions and 11 skipped */ in get_tick()
82 " rd %%tick, %0\n" in get_tick()
92 : "=&r" (tick), "=&r" (tmp1), "=&r" (tmp2) in get_tick()
95 return tick; in get_tick()
/linux/drivers/net/wireless/ath/carl9170/
H A Dcmd.c173 unsigned int tick; in carl9170_collect_tally() local
181 tick = le32_to_cpu(tally.tick); in carl9170_collect_tally()
182 if (tick) { in carl9170_collect_tally()
183 ar->tally.active += le32_to_cpu(tally.active) / tick; in carl9170_collect_tally()
184 ar->tally.cca += le32_to_cpu(tally.cca) / tick; in carl9170_collect_tally()
185 ar->tally.tx_time += le32_to_cpu(tally.tx_time) / tick; in carl9170_collect_tally()
/linux/drivers/clocksource/
H A Dbcm_kona_timer.c37 * We use the peripheral timers for system tick, the cpu global timer for
38 * profile tick
112 /* Load the "next" event tick value */ in kona_timer_set_next_event()
180 "Kona Timer Tick", NULL)) in kona_timer_init()
181 pr_err("%s: request_irq() failed\n", "Kona Timer Tick"); in kona_timer_init()
H A Dnomadik-mtu.c197 * Tick rate is 2.4MHz for Nomadik and 2.4Mhz, 100MHz or 133 MHz in nmdk_timer_init()
200 * Use a divide-by-16 counter if the tick rate is more than 32MHz. in nmdk_timer_init()
231 "Nomadik Timer Tick", &nmdk_clkevt)) in nmdk_timer_init()
232 pr_err("%s: request_irq() failed\n", "Nomadik Timer Tick"); in nmdk_timer_init()
/linux/arch/openrisc/kernel/
H A Dtime.c62 /* This is the clock event device based on the OR1K tick timer.
64 * timers) we cannot enable the PERIODIC feature. The tick timer can run using
137 * This sets up the OpenRISC Tick Timer as a clock source. The tick timer
172 panic("Linux not supported on devices without tick timer"); in time_init()
/linux/sound/firewire/motu/
H A Damdtp-motu.c314 unsigned int tick; in cache_event_offsets() local
316 tick = ((sph & CIP_SPH_CYCLE_MASK) >> CIP_SPH_CYCLE_SHIFT) * TICKS_PER_CYCLE + in cache_event_offsets()
319 if (tick < base_tick) in cache_event_offsets()
320 tick += TICKS_PER_SECOND; in cache_event_offsets()
321 event_offsets[cache_tail] = tick - base_tick; in cache_event_offsets()
383 unsigned int tick = (base_tick + event_offsets[cache_head]) % TICKS_PER_SECOND; in write_sph() local
384 u32 sph = ((tick / TICKS_PER_CYCLE) << CIP_SPH_CYCLE_SHIFT) | (tick % TICKS_PER_CYCLE); in write_sph()
/linux/kernel/sched/
H A Didle.c208 * available. Possibly also suspend the local tick and the entire in cpuidle_idle_call()
236 * target residency above the tick period length. in cpuidle_idle_call()
338 * again to reprogram the tick. in do_idle()
347 * detected in the wakeup from idle path that the tick in do_idle()
416 * Only FIFO tasks can disable the tick since they don't need the forced in play_idle_precise()
525 * scheduler tick hitting a task of our scheduling class.
527 * NOTE: This function can be called remotely by the tick offload that
/linux/arch/loongarch/kvm/
H A Dtimer.c12 * ktime_to_tick() - Scale ktime_t to timer tick value.
22 static inline u64 tick_to_ns(struct kvm_vcpu *vcpu, u64 tick) in tick_to_ns() argument
24 return div_u64(tick * MNSEC_PER_SEC, vcpu->arch.timer_mhz); in tick_to_ns()
117 * Set remainder tick value if not expired in kvm_restore_timer()
/linux/include/xen/interface/hvm/
H A Dparams.h73 * internal tick alarm is not disabled if the VCPU is preempted during the
74 * next tick period.
76 * Missed interrupts are collapsed together and delivered as one 'late tick'.
/linux/arch/openrisc/include/asm/
H A Dspr_defs.h129 /* Tick Timer group */
167 #define SPR_UPR_TTP 0x00000400 /* Tick timer present */
216 #define SPR_SR_TEE 0x00000002 /* Tick timer Exception Enable */
481 #define SPR_DSR_TTE 0x00000010 /* Tick Timer exception */
500 #define SPR_DRR_TTE 0x00000010 /* Tick Timer exception */
561 * Bit definitions for Tick Timer Control Register
570 #define SPR_TTMR_RT 0x40000000 /* Restart tick */
573 #define SPR_TTMR_M 0xc0000000 /* Tick mode */
/linux/drivers/gpu/drm/panthor/
H A Dpanthor_sched.c74 * groups than there are slots, the periodic tick is disabled and we
153 * Used for the scheduler tick, group update or other kind of FW
169 /** @tick_work: Work executed on a scheduling tick. */
185 * outside the interrupt path so we don't block the tick logic when
198 * @resched_target: When the next tick should occur.
205 * @last_tick: When the last tick occurred.
211 /** @tick_period: Tick period in jiffies. */
217 * Should be taken in the tick work, the irq handler, and anywhere the @groups
280 * This will force a tick, so other runnable groups can be scheduled if one
692 * the last ref is released in the tick wor
[all...]
/linux/Documentation/admin-guide/pm/
H A Dsuspend-flows.rst99 4. Freezing the scheduler tick and suspending timekeeping.
103 "freezes" its own scheduler tick so that the timer events associated with
104 the tick do not occur until the CPU is woken up by another interrupt source.
126 1. Resuming timekeeping and unfreezing the scheduler tick.
131 by another CPU that woke up earlier) and the scheduler tick on that CPU is

12345678910>>...15