From: Glauber de Oliveira Costa Date: Wed, 30 Jan 2008 12:31:26 +0000 (+0100) Subject: x86: move tsc definitions to were they belong X-Git-Tag: v2.6.25-rc1~1143^2~548 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=73018a66e70fa631935192e5ed6ef8fa2d20b22d;p=linux-2.6-omap-h63xx.git x86: move tsc definitions to were they belong This patch wipes out the definitions of tsc_disable from processor_32.h and move it to tsc.h, were it belongs Signed-off-by: Glauber de Oliveira Costa Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/include/asm-x86/processor_32.h b/include/asm-x86/processor_32.h index a5560a3b57e..76cada930d2 100644 --- a/include/asm-x86/processor_32.h +++ b/include/asm-x86/processor_32.h @@ -22,9 +22,6 @@ #include #include -/* flag for disabling the tsc */ -extern int tsc_disable; - static inline int desc_empty(const void *ptr) { const u32 *desc = ptr; @@ -206,8 +203,6 @@ extern int bootloader_type; #define HAVE_ARCH_PICK_MMAP_LAYOUT -extern void disable_TSC(void); - /* * Size of io_bitmap. */ diff --git a/include/asm-x86/tsc.h b/include/asm-x86/tsc.h index 9b7d264897f..40130372413 100644 --- a/include/asm-x86/tsc.h +++ b/include/asm-x86/tsc.h @@ -16,6 +16,10 @@ typedef unsigned long long cycles_t; extern unsigned int cpu_khz; extern unsigned int tsc_khz; +/* flag for disabling the tsc */ +extern int tsc_disable; + +extern void disable_TSC(void); static inline cycles_t get_cycles(void) {