x86, ptrace: support for branch trace store(BTS)
[sfrench/cifs-2.6.git] / arch / x86 / kernel / setup_64.c
index ce4d6b52ce36a92e57d47f4a105decce520417a6..f2b131ef844e085cb8ff1a97f71b7a374948395f 100644 (file)
@@ -60,6 +60,7 @@
 #include <asm/dmi.h>
 #include <asm/cacheflush.h>
 #include <asm/mce.h>
+#include <asm/ds.h>
 
 /*
  * Machine setup..
@@ -823,6 +824,10 @@ static void __cpuinit init_intel(struct cpuinfo_x86 *c)
                        set_cpu_cap(c, X86_FEATURE_PEBS);
        }
 
+
+       if (cpu_has_bts)
+               ds_init_intel(c);
+
        n = c->extended_cpuid_level;
        if (n >= 0x80000008) {
                unsigned eax = cpuid_eax(0x80000008);