[PATCH 8/8] arm: perf: fold hotplug notifier into arm_pmu
Stephen Boyd
sboyd at codeaurora.org
Tue Oct 21 15:18:05 PDT 2014
On 10/21/2014 06:11 AM, Mark Rutland wrote:
> @@ -169,6 +192,11 @@ static int cpu_pmu_init(struct arm_pmu *cpu_pmu)
> if (!cpu_hw_events)
> return -ENOMEM;
>
> + cpu_pmu->hotplug_nb.notifier_call = cpu_pmu_notify;
> + err = register_cpu_notifier(&cpu_pmu->hotplug_nb);
Does this need to be unregistered if armpmu_register() fails?
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
More information about the linux-arm-kernel
mailing list