projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a4961b
)
ARM: perf: return NOTIFY_DONE from cpu notifier when no available PMU
author
Will Deacon
<will.deacon@arm.com>
Fri, 21 Sep 2012 13:14:17 +0000
(14:14 +0100)
committer
Will Deacon
<will.deacon@arm.com>
Fri, 9 Nov 2012 11:37:26 +0000
(11:37 +0000)
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>
arch/arm/kernel/perf_event_cpu.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/kernel/perf_event_cpu.c
b/arch/arm/kernel/perf_event_cpu.c
index 71c824ce0203b6302b5483bf23d94f5908ae38fd..db9c6b530f3c8c9e02c77311bafa7c7c538d2fc6 100644
(file)
--- a/
arch/arm/kernel/perf_event_cpu.c
+++ b/
arch/arm/kernel/perf_event_cpu.c
@@
-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;
}