Skip to content

Commit

Permalink
ARM: perf: return NOTIFY_DONE from cpu notifier when no available PMU
Browse files Browse the repository at this point in the history
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: Will Deacon <will.deacon@arm.com>
  • Loading branch information
Will Deacon committed Nov 9, 2012
1 parent 2a4961b commit 288700d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/kernel/perf_event_cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 288700d

Please sign in to comment.