Merge branch 'core/percpu' into perfcounters/core
[firefly-linux-kernel-4.4.55.git] / arch / x86 / kernel / cpu / common.c
index 7976a6a0f65c1c626c4fb983e7c45f7f6d84198d..95eb30e1e677d467c7185d7992789870469d2196 100644 (file)
@@ -17,6 +17,7 @@
 #include <asm/mmu_context.h>
 #include <asm/mtrr.h>
 #include <asm/mce.h>
+#include <asm/perf_counter.h>
 #include <asm/pat.h>
 #include <asm/asm.h>
 #include <asm/numa.h>
@@ -774,6 +775,7 @@ void __init identify_boot_cpu(void)
 #else
        vgetcpu_set_mode();
 #endif
+       init_hw_perf_counters();
 }
 
 void __cpuinit identify_secondary_cpu(struct cpuinfo_x86 *c)