Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b23f6d06 authored by Runmin Wang's avatar Runmin Wang
Browse files

perf/core: Compile out perf_cpu_hp_init when CONFIG_HOTPLUG is not set



Fix the compliation error when CONFIG_HOTPLUG is not defined.

Change-Id: I0df48971429932f68181d615cabe16d68892ded2
Signed-off-by: default avatarRunmin Wang <runminw@codeaurora.org>
parent 79d42bd7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -10916,6 +10916,7 @@ static int __init perf_event_sysfs_init(void)
}
device_initcall(perf_event_sysfs_init);

#ifdef CONFIG_HOTPLUG_CPU
static int perf_cpu_hp_init(void)
{
	int ret;
@@ -10930,6 +10931,7 @@ static int perf_cpu_hp_init(void)
	return ret;
}
subsys_initcall(perf_cpu_hp_init);
#endif

#ifdef CONFIG_CGROUP_PERF
static struct cgroup_subsys_state *