#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)unsignedlonglongnative_sched_clock(void);externintrecalibrate_cpu_khz(void);externintno_timer_check;/* * 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). */structcyc2ns_data{u32cyc2ns_mul;u32cyc2ns_shift;u64cyc2ns_offset;u32__count;/* u32 hole */};/* 24 bytes -- do not grow */externstructcyc2ns_data*cyc2ns_read_begin(void);externvoidcyc2ns_read_end(structcyc2ns_data*);#endif /* _ASM_X86_TIMER_H */