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

Commit 288700d1 authored by Will Deacon's avatar Will Deacon
Browse files

ARM: perf: return NOTIFY_DONE from cpu notifier when no available PMU



When attempting to reset the PMU state for either a NULL PMU or a PMU
implementation without a reset function, return NOTIFY_DONE from the CPU
notifier as we don't care about the hotplug event.

Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 2a4961ba
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -165,6 +165,8 @@ static int __cpuinit cpu_pmu_notify(struct notifier_block *b,

	if (cpu_pmu && cpu_pmu->reset)
		cpu_pmu->reset(cpu_pmu);
	else
		return NOTIFY_DONE;

	return NOTIFY_OK;
}