x86: convert TSC disabling to generic cpuid disable bitmap
Fix from: Ian Campbell <ijc@hellion.org.uk> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
@@ -135,6 +135,10 @@
|
||||
clear_cpu_cap(&boot_cpu_data, bit); \
|
||||
set_bit(bit, cleared_cpu_caps); \
|
||||
} while (0)
|
||||
#define setup_force_cpu_cap(bit) do { \
|
||||
set_cpu_cap(&boot_cpu_data, bit); \
|
||||
clear_bit(bit, cleared_cpu_caps); \
|
||||
} while (0)
|
||||
|
||||
#define cpu_has_fpu boot_cpu_has(X86_FEATURE_FPU)
|
||||
#define cpu_has_vme boot_cpu_has(X86_FEATURE_VME)
|
||||
|
||||
@@ -16,8 +16,6 @@ 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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user