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

Commit 7ffa51fe authored by Kyle Yan's avatar Kyle Yan Committed by Rishabh Bhatnagar
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
[rananta@codeaurora.org: resolved trivial merge conflicts]
Signed-off-by: default avatarKyle Yan <kyan@codeaurora.org>
Signed-off-by: default avatarRaghavendra Rao Ananta <rananta@codeaurora.org>
parent 3d3eb5fb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1399,8 +1399,8 @@ static int perf_event_cpu_hp_init(void)
{
	int ret;

	ret = cpuhp_setup_state_nocalls(CPUHP_AP_PERF_ONLINE,
				"PERF_EVENT/CPUHP_AP_PERF_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
@@ -172,6 +172,7 @@ enum cpuhp_state {
	CPUHP_AP_WATCHDOG_ONLINE,
	CPUHP_AP_WORKQUEUE_ONLINE,
	CPUHP_AP_RCUTREE_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,