/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_X86_TIMER_H #define _ASM_X86_TIMER_H #include <linux/pm.h> #include <linux/percpu.h> #include <linux/interrupt.h> #include <linux/math64.h> #define TICK_SIZE (tick_nsec / 1000) unsigned long long native_sched_clock(void); extern int recalibrate_cpu_khz(void); extern int no_timer_check; extern bool using_native_sched_clock(void); /* * We use the full linear equation: f(x) = a + b*x, in order to allow * a continuous function in the face of dynamic freq changes. * * Continuity means that when our frequency changes our slope (b); we want to * ensure that: f(t) == f'(t), which gives: a + b*t == a' + b'*t. * * Without an offset (a) the above would not be possible. * * See the comment near cycles_2_ns() for details on how we compute (b). */ struct cyc2ns_data { u32 cyc2ns_mul; u32 cyc2ns_shift; u64 cyc2ns_offset; }; /* 16 bytes */ extern void cyc2ns_read_begin(struct cyc2ns_data *); extern void cyc2ns_read_end(void); #endif /* _ASM_X86_TIMER_H */Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Peter Zijlstra | 42 | 50.00% | 4 | 26.67% |
John Stultz | 10 | 11.90% | 2 | 13.33% |
Zachary Amsden | 8 | 9.52% | 1 | 6.67% |
Thomas Gleixner | 7 | 8.33% | 1 | 6.67% |
Jaswinder Singh Rajput | 4 | 4.76% | 1 | 6.67% |
Ingo Molnar | 3 | 3.57% | 1 | 6.67% |
Guillaume Chazarain | 3 | 3.57% | 1 | 6.67% |
H. Peter Anvin | 3 | 3.57% | 1 | 6.67% |
Andries E. Brouwer | 2 | 2.38% | 1 | 6.67% |
David Shaohua Li | 1 | 1.19% | 1 | 6.67% |
Greg Kroah-Hartman | 1 | 1.19% | 1 | 6.67% |
Total | 84 | 100.00% | 15 | 100.00% |