diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86_64/kernel/setup.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c index fc944b5e8f4a..619af2e2fa26 100644 --- a/arch/x86_64/kernel/setup.c +++ b/arch/x86_64/kernel/setup.c | |||
@@ -835,6 +835,13 @@ static void __cpuinit init_intel(struct cpuinfo_x86 *c) | |||
835 | set_bit(X86_FEATURE_ARCH_PERFMON, &c->x86_capability); | 835 | set_bit(X86_FEATURE_ARCH_PERFMON, &c->x86_capability); |
836 | } | 836 | } |
837 | 837 | ||
838 | if (cpu_has_ds) { | ||
839 | unsigned int l1, l2; | ||
840 | rdmsr(MSR_IA32_MISC_ENABLE, l1, l2); | ||
841 | if (!(l1 & (1<<12))) | ||
842 | set_bit(X86_FEATURE_PEBS, c->x86_capability); | ||
843 | } | ||
844 | |||
838 | n = c->extended_cpuid_level; | 845 | n = c->extended_cpuid_level; |
839 | if (n >= 0x80000008) { | 846 | if (n >= 0x80000008) { |
840 | unsigned eax = cpuid_eax(0x80000008); | 847 | unsigned eax = cpuid_eax(0x80000008); |