x86: kill 8253pit.h
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / asm-x86 / timex_64.h
CommitLineData
1da177e4
LT
1/*
2 * linux/include/asm-x86_64/timex.h
3 *
4 * x86-64 architecture timex specifications
5 */
6#ifndef _ASMx8664_TIMEX_H
7#define _ASMx8664_TIMEX_H
8
1da177e4
LT
9#include <asm/msr.h>
10#include <asm/vsyscall.h>
c818a181
AK
11#include <asm/system.h>
12#include <asm/processor.h>
95492e46 13#include <asm/tsc.h>
c818a181 14#include <linux/compiler.h>
1da177e4 15
5d5a2989 16#define PIT_TICK_RATE 1193182UL
1da177e4
LT
17#define CLOCK_TICK_RATE PIT_TICK_RATE /* Underlying HZ */
18
8a9e1b0f
VP
19extern int read_current_timer(unsigned long *timer_value);
20#define ARCH_HAS_READ_CURRENT_TIMER 1
21
c37e7bb5
JS
22#define USEC_PER_TICK (USEC_PER_SEC / HZ)
23#define NSEC_PER_TICK (NSEC_PER_SEC / HZ)
24#define FSEC_PER_TICK (FSEC_PER_SEC / HZ)
25
26#define NS_SCALE 10 /* 2^10, carefully chosen */
27#define US_SCALE 32 /* 2^32, arbitralrily chosen */
28
5a90cf20 29extern void mark_tsc_unstable(char *msg);
c37e7bb5 30extern void set_cyc2ns_scale(unsigned long khz);
1da177e4 31#endif