diff options
Diffstat (limited to 'arch/x86/kernel/cpu/intel.c')
-rw-r--r-- | arch/x86/kernel/cpu/intel.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c index cce0b6118d55..caec59437a22 100644 --- a/arch/x86/kernel/cpu/intel.c +++ b/arch/x86/kernel/cpu/intel.c | |||
@@ -41,6 +41,16 @@ static void __cpuinit early_init_intel(struct cpuinfo_x86 *c) | |||
41 | if (c->x86 == 15 && c->x86_cache_alignment == 64) | 41 | if (c->x86 == 15 && c->x86_cache_alignment == 64) |
42 | c->x86_cache_alignment = 128; | 42 | c->x86_cache_alignment = 128; |
43 | #endif | 43 | #endif |
44 | |||
45 | /* | ||
46 | * c->x86_power is 8000_0007 edx. Bit 8 is TSC runs at constant rate | ||
47 | * with P/T states and does not stop in deep C-states | ||
48 | */ | ||
49 | if (c->x86_power & (1 << 8)) { | ||
50 | set_cpu_cap(c, X86_FEATURE_CONSTANT_TSC); | ||
51 | set_cpu_cap(c, X86_FEATURE_NONSTOP_TSC); | ||
52 | } | ||
53 | |||
44 | } | 54 | } |
45 | 55 | ||
46 | #ifdef CONFIG_X86_32 | 56 | #ifdef CONFIG_X86_32 |