aboutsummaryrefslogtreecommitdiff
path: root/kernel/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/cpu.c')
-rw-r--r--kernel/cpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/cpu.c b/kernel/cpu.c
index c13f079484fe..494307f87d3b 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -1469,7 +1469,9 @@ int __boot_cpu_id;
/* Horrific hacks because we can't add more to cpuhp_hp_states. */
static int random_and_perf_prepare_fusion(unsigned int cpu)
{
+#ifdef CONFIG_PERF_EVENTS
perf_event_init_cpu(cpu);
+#endif
random_prepare_cpu(cpu);
return 0;
}