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

Commit 5358c988 authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

Perf: arm64: Add additional CPUHP state for perf events



Previous hotplug notifier was overwriting cpu online notifiers which
are needed by various drivers in the kernel. Instead create a new state
right after CPUHP_AP_NOTIFY_ONLINE just for perf.

Change-Id: Ie740315c621a176ceff3ca13f52a48716eef5782
Signed-off-by: default avatarKyle Yan <kyan@codeaurora.org>
parent 9c9a0530
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1161,8 +1161,8 @@ static int perf_event_cpu_hp_init(void)
{
	int ret;

	ret = cpuhp_setup_state_nocalls(CPUHP_AP_NOTIFY_ONLINE,
				"PERF_EVENT/CPUHP_AP_NOTIFY_ONLINE",
	ret = cpuhp_setup_state_nocalls(CPUHP_AP_NOTIFY_PERF_ONLINE,
				"PERF_EVENT/CPUHP_AP_NOTIFY_PERF_ONLINE",
				perf_event_hotplug_coming_up,
				perf_event_hotplug_going_down);
	if (ret)
+1 −0
Original line number Diff line number Diff line
@@ -128,6 +128,7 @@ enum cpuhp_state {
	CPUHP_AP_WORKQUEUE_ONLINE,
	CPUHP_AP_RCUTREE_ONLINE,
	CPUHP_AP_NOTIFY_ONLINE,
	CPUHP_AP_NOTIFY_PERF_ONLINE,
	CPUHP_AP_ONLINE_DYN,
	CPUHP_AP_ONLINE_DYN_END		= CPUHP_AP_ONLINE_DYN + 30,
	CPUHP_AP_X86_HPET_ONLINE,