/linux-5.10/kernel/time/ |
D | tick-sched.h | 24 * struct tick_sched - sched tick emulation and no idle tick control/stats 25 * @sched_timer: hrtimer to schedule the periodic tick in high 29 * @inidle: Indicator that the CPU is in the tick idle mode 30 * @tick_stopped: Indicator that the idle tick has been stopped 31 * @idle_active: Indicator that the CPU is actively in the tick idle mode; 34 * @got_idle_tick: Tick timer function has run with @inidle set 35 * @last_tick: Store the last tick expiry time when the tick 37 * to resume the tick timer operation in the timeline 39 * @next_tick: Next tick to be fired when in dynticks mode. 42 * @idle_sleeps: Number of idle calls, where the sched tick was stopped [all …]
|
D | tick-sched.c | 7 * No idle tick implementation for low and high resolution timers 31 #include "tick-internal.h" 157 * When we are idle and the tick is stopped, we have to touch in tick_sched_handle() 169 * In case the current tick fired too early past its expected in tick_sched_handle() 243 /* Empty, the tick restart happens on tick_nohz_irq_exit() */ in nohz_full_kick_func() 253 * re-evaluate its dependency on the tick and restart it if necessary. 267 * re-evaluate its dependency on the tick and restart it if necessary. 279 * their dependency on the tick and restart it if necessary. 305 * Set a global tick dependency. Used by perf events that rely on freq and 319 * Set per-CPU tick dependency. Used by scheduler and perf events in order to [all …]
|
D | Makefile | 12 obj-$(CONFIG_GENERIC_CLOCKEVENTS) += clockevents.o tick-common.o 14 obj-y += tick-broadcast.o 15 obj-$(CONFIG_TICK_ONESHOT) += tick-broadcast-hrtimer.o 18 obj-$(CONFIG_TICK_ONESHOT) += tick-oneshot.o tick-sched.o
|
D | tick-common.c | 3 * This file contains the base functions to manage periodic tick 23 #include "tick-internal.h" 26 * Tick devices 30 * Tick next event: keeps track of the tick time 82 * Periodic tick 90 /* Keep track of the next tick event */ in tick_periodic() 149 * Setup the device for a periodic tick 202 * Setup the tick device 450 * tick_suspend_local - Suspend the local tick device 464 * tick_resume_local - Resume the local tick device [all …]
|
D | Kconfig | 68 # only related to the tick functionality. Oneshot clockevent devices 79 prompt "Timer tick handling" 85 This option keeps the tick running periodically at a constant 114 Adaptively try to shutdown the tick whenever possible, even when
|
D | jiffies.c | 47 * interrupt hardware to accuratly tick at the 49 * for "tick-less" systems. 106 /* Calc cycles per tick */ in register_refined_jiffies()
|
D | tick-oneshot.c | 3 * This file contains functions which manage high resolution tick 18 #include "tick-internal.h" 83 pr_cont(" no tick device\n"); in tick_switch_to_oneshot()
|
/linux-5.10/sound/core/seq/ |
D | seq_timer.h | 13 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 53 static inline void snd_seq_timer_update_tick(struct snd_seq_timer_tick *tick, in snd_seq_timer_update_tick() argument 56 if (tick->resolution > 0) { in snd_seq_timer_update_tick() 57 tick->fraction += resolution; in snd_seq_timer_update_tick() 58 tick->cur_tick += (unsigned int)(tick->fraction / tick->resolution); in snd_seq_timer_update_tick() 59 tick->fraction %= tick->resolution; in snd_seq_timer_update_tick()
|
D | seq_timer.c | 24 tmr->tick.resolution = (tmr->tempo * 1000) / tmr->ppq; in snd_seq_timer_set_tick_resolution() 30 tmr->tick.resolution = (tmr->tempo / tmr->ppq) * 1000; in snd_seq_timer_set_tick_resolution() 31 tmr->tick.resolution += s; in snd_seq_timer_set_tick_resolution() 33 if (tmr->tick.resolution <= 0) in snd_seq_timer_set_tick_resolution() 34 tmr->tick.resolution = 1; in snd_seq_timer_set_tick_resolution() 35 snd_seq_timer_update_tick(&tmr->tick, 0); in snd_seq_timer_set_tick_resolution() 105 tmr->tick.cur_tick = 0; in seq_timer_reset() 106 tmr->tick.fraction = 0; in seq_timer_reset() 149 /* calculate current tick */ in snd_seq_timer_interrupt() 150 snd_seq_timer_update_tick(&tmr->tick, resolution); in snd_seq_timer_interrupt() [all …]
|
D | seq_prioq.c | 91 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() 206 return snd_seq_compare_tick_time(current_time, &ev->time.tick); in event_is_ready() 262 if (cell->event.time.tick) in prioq_match() 347 res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick); in prioq_remove_match() 355 res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick); in prioq_remove_match()
|
/linux-5.10/tools/testing/selftests/timers/ |
D | adjtick.c | 1 /* adjtimex() tick adjustment test 128 tx1.tick = tickval; in check_tick_adj() 135 printf("Estimating tick (act: %ld usec, %lld ppm): ", tickval, ppm); in check_tick_adj() 144 if (tx1.offset || tx1.freq || tx1.tick != tickval) { in check_tick_adj() 153 * cannot match the HZ tick size accurately, so we have a in check_tick_adj() 171 long tick, max, interval, err; in main() local 189 for (tick = (systick - max); tick < (systick + max); tick += interval) { in main() 190 if (check_tick_adj(tick)) { in main() 203 tx1.tick = systick; in main()
|
/linux-5.10/Documentation/timers/ |
D | highres.rst | 100 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 …]
|
D | no_hz.rst | 128 adaptive-tick CPUs: At least one non-adaptive-tick CPU must remain 130 calls like gettimeofday() returns accurate values on adaptive-tick CPUs. 147 Just as with dyntick-idle mode, the benefits of adaptive-tick mode do 159 3. POSIX CPU timers prevent CPUs from entering adaptive-tick mode. 165 all of them over time. Adaptive-tick mode may prevent this 168 entering adaptive-tick mode. 170 5. Scheduler statistics for adaptive-tick CPUs may be computed 171 slightly differently than those for non-adaptive-tick CPUs. 184 enter either dyntick-idle mode or adaptive-tick mode, the most 188 to enter dyntick-idle mode or adaptive-tick mode anyway. In this case, [all …]
|
/linux-5.10/Documentation/admin-guide/pm/ |
D | cpuidle.rst | 165 tick can be `stopped by the idle loop <idle-cpus-and-tick_>`_. Available 186 .. _idle-cpus-and-tick: 188 Idle CPUs and The Scheduler Tick 191 The scheduler tick is a timer that triggers periodically in order to implement 199 may not want to give the CPU away voluntarily, however, and the scheduler tick 201 tick, but it is the primary reason for using it. 203 The scheduler tick is problematic from the CPU idle time management perspective, 205 configuration, the length of the tick period is between 1 ms and 10 ms). 206 Thus, if the tick is allowed to trigger on idle CPUs, it will not make sense 208 the tick period length. Moreover, in that case the idle duration of any CPU [all …]
|
/linux-5.10/arch/sparc/include/asm/ |
D | timer_64.h | 48 unsigned int tick[GET_TICK_NINSTR]; member 57 unsigned long tick, tmp1, tmp2; in get_tick() local 81 /* read tick 2 instructions and 11 skipped */ in get_tick() 83 " rd %%tick, %0\n" in get_tick() 93 : "=&r" (tick), "=&r" (tmp1), "=&r" (tmp2) in get_tick() 96 return tick; in get_tick()
|
/linux-5.10/arch/sparc/kernel/ |
D | time_64.c | 70 /* Set things up so user can access tick register for profiling in tick_disable_protection() 72 * read back of %tick after writing it. in tick_disable_protection() 78 "1: rd %%tick, %%g2\n" in tick_disable_protection() 81 " wrpr %%g2, 0, %%tick\n" in tick_disable_protection() 82 " rdpr %%tick, %%g0" in tick_disable_protection() 110 __asm__ __volatile__("rd %%tick, %0\n\t" in tick_get_tick() 121 __asm__ __volatile__("rd %%tick, %0" in tick_add_compare() 144 __asm__ __volatile__("rd %%tick, %0" in tick_add_compare() 156 __asm__ __volatile__("rd %%tick, %0\n\t" in tick_add_tick() 158 "wrpr %0, 0, %%tick\n\t" in tick_add_tick() [all …]
|
/linux-5.10/drivers/net/wireless/ath/carl9170/ |
D | cmd.c | 173 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-5.10/Documentation/devicetree/bindings/watchdog/ |
D | sirfsoc_wdt.txt | 4 - compatible: "sirf,prima2-tick" 5 - reg: Address range of tick timer/WDT register set 14 compatible = "sirf,prima2-tick";
|
/linux-5.10/arch/openrisc/kernel/ |
D | time.c | 58 /* This is the clock event device based on the OR1K tick timer. 60 * timers) we cannot enable the PERIODIC feature. The tick timer can run using 133 * This sets up the OpenRISC Tick Timer as a clock source. The tick timer 168 panic("Linux not supported on devices without tick timer"); in time_init()
|
/linux-5.10/drivers/cpuidle/governors/ |
D | menu.c | 16 #include <linux/tick.h> 51 * duration always was 50% of the next timer tick, the correction factor will 263 * @stop_tick: indication on whether or not to stop the tick 294 * it right away and keep the tick running if state[0] is a in menu_select() 313 * If the tick is already stopped, the cost of possible short in menu_select() 366 * tick in that case and let the governor run in menu_select() 395 * Don't stop the tick if the selected state is a polling one or if the in menu_select() 396 * expected idle duration is shorter than the tick period length. in menu_select() 404 * The tick is not going to be stopped and the target in menu_select() 407 * tick, so try to correct that. in menu_select() [all …]
|
/linux-5.10/drivers/clocksource/ |
D | bcm_kona_timer.c | 47 * We use the peripheral timers for system tick, the cpu global timer for 48 * profile tick 122 /* Load the "next" event tick value */ in kona_timer_set_next_event() 190 "Kona Timer Tick", NULL)) in kona_timer_init() 191 pr_err("%s: request_irq() failed\n", "Kona Timer Tick"); in kona_timer_init()
|
/linux-5.10/include/linux/ |
D | timekeeper_internal.h | 114 * This cached copy ensures we consistently apply the tick 115 * length for an entire tick, as ntp_tick_length may change 116 * mid-tick, and we don't want to apply that new value to 117 * the tick in progress.
|
/linux-5.10/arch/arm/plat-omap/ |
D | Kconfig | 72 timer provides more intra-tick resolution than the 32KHz timer, 82 support for no tick during idle. The 32KHz timer provides less 83 intra-tick resolution than OMAP_MPU_TIMER. The 32KHz timer is
|
/linux-5.10/Documentation/devicetree/bindings/timer/ |
D | faraday,fttmr010.txt | 22 - clocks : a clock to provide the tick rate for "faraday,fttmr010" 23 - clock-names : should be "EXTCLK" and "PCLK" for the external tick timer
|
/linux-5.10/kernel/sched/ |
D | cputime.c | 306 * those pending times and rely only on values updated on tick or in thread_group_cputime() 337 * Account a tick to a process and cpustat 339 * @user_tick: is the tick from userspace 342 * Tick demultiplexing follows the order 467 * Account a single tick of CPU time. 469 * @user_tick: indicates if the tick is a user or a system tick 523 * Adjust tick based cputime random precision against scheduler runtime 526 * Tick based cputime accounting depend on random scheduling timeslices of a 532 * Fix this by scaling these tick based values against the total runtime 652 * Unlike tick based timing, vtime based timing never has lost in get_vtime_delta()
|