2005-04-16 15:20:36 -07:00
|
|
|
#ifndef _ASMi386_TIMER_H
|
|
|
|
#define _ASMi386_TIMER_H
|
|
|
|
#include <linux/init.h>
|
2005-09-03 15:57:07 -07:00
|
|
|
#include <linux/pm.h>
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
#define TICK_SIZE (tick_nsec / 1000)
|
2007-03-05 01:30:35 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
void setup_pit_timer(void);
|
2007-03-05 01:30:35 -07:00
|
|
|
unsigned long long native_sched_clock(void);
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
/* Modifiers for buggy PIT handling */
|
|
|
|
extern int pit_latch_buggy;
|
|
|
|
extern int timer_ack;
|
2007-02-13 05:26:21 -07:00
|
|
|
extern int no_timer_check;
|
2007-02-13 05:26:21 -07:00
|
|
|
extern int no_sync_cmos_clock;
|
2005-05-31 19:03:46 -07:00
|
|
|
extern int recalibrate_cpu_khz(void);
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-03-05 01:30:35 -07:00
|
|
|
#ifndef CONFIG_PARAVIRT
|
|
|
|
#define get_scheduled_cycles(val) rdtscll(val)
|
|
|
|
#endif
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
#endif
|