]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86_64/kernel/setup.c
[PATCH] x86-64: x86-64 add Intel BTS cpufeature bit and detection (take 2)
[linux-2.6-omap-h63xx.git] / arch / x86_64 / kernel / setup.c
index 619af2e2fa267ba18eab8086a5b50d36ec8cc56c..a570c81c83163fc2856997bb173b11748b228b06 100644 (file)
@@ -838,6 +838,8 @@ static void __cpuinit init_intel(struct cpuinfo_x86 *c)
        if (cpu_has_ds) {
                unsigned int l1, l2;
                rdmsr(MSR_IA32_MISC_ENABLE, l1, l2);
+               if (!(l1 & (1<<11)))
+                       set_bit(X86_FEATURE_BTS, c->x86_capability);
                if (!(l1 & (1<<12)))
                        set_bit(X86_FEATURE_PEBS, c->x86_capability);
        }