]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-x86/tsc.h
x86: PAT phys_mem_access_prot_allowed for dev/mem mmap
[linux-2.6-omap-h63xx.git] / include / asm-x86 / tsc.h
index f51a50da35aac186341211ba9b754df6ad38229f..0434bd8349a7456f27f8ca95c18b472e07c1ba8e 100644 (file)
@@ -16,10 +16,9 @@ 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);
+extern void enable_TSC(void);
 
 static inline cycles_t get_cycles(void)
 {
@@ -29,10 +28,8 @@ static inline cycles_t get_cycles(void)
        if (!cpu_has_tsc)
                return 0;
 #endif
-
-#if defined(CONFIG_X86_GENERIC) || defined(CONFIG_X86_TSC)
        rdtscll(ret);
-#endif
+
        return ret;
 }
 
@@ -46,7 +43,7 @@ static inline cycles_t vget_cycles(void)
        if (!cpu_has_tsc)
                return 0;
 #endif
-       return (cycles_t) native_read_tsc();
+       return (cycles_t)__native_read_tsc();
 }
 
 extern void tsc_init(void);