cregit-Linux how code gets into the kernel

Release 4.13 arch/x86/include/asm/timer.h

#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

PersonTokensPropCommitsCommitProp
Peter Zijlstra4250.60%428.57%
John Stultz1012.05%214.29%
Zachary Amsden89.64%17.14%
Thomas Gleixner78.43%17.14%
Jaswinder Singh Rajput44.82%17.14%
Ingo Molnar33.61%17.14%
Guillaume Chazarain33.61%17.14%
H. Peter Anvin33.61%17.14%
Andries E. Brouwer22.41%17.14%
David Shaohua Li11.20%17.14%
Total83100.00%14100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.