mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
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:
parent
8424950b5e
commit
404ee5b14b
8 changed files with 11 additions and 26 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue