projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cb627d
)
perf: Fix CPU hotplug
author
Peter Zijlstra
<
[email protected]
>
Fri, 11 Jun 2010 11:35:08 +0000
(13:35 +0200)
committer
Ingo Molnar
<
[email protected]
>
Thu, 9 Sep 2010 18:38:52 +0000
(20:38 +0200)
Since we have UP_PREPARE, we should also have UP_CANCELED.
Signed-off-by: Peter Zijlstra <
[email protected]
>
Cc: paulus <
[email protected]
>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <
[email protected]
>
kernel/perf_event.c
patch
|
blob
|
history
diff --git
a/kernel/perf_event.c
b/kernel/perf_event.c
index 657555a5f30fc9399513e9538a205d2e8bf0fff0..db5b56064687e453c0df1cc118b975ea047bdcae 100644
(file)
--- a/
kernel/perf_event.c
+++ b/
kernel/perf_event.c
@@
-5761,15
+5761,15
@@
perf_cpu_notify(struct notifier_block *self, unsigned long action, void *hcpu)
{
unsigned int cpu = (long)hcpu;
- switch (action) {
+ switch (action
& ~CPU_TASKS_FROZEN
) {
case CPU_UP_PREPARE:
- case CPU_
UP_PREPARE_FROZEN
:
+ case CPU_
DOWN_FAILED
:
perf_event_init_cpu(cpu);
break;
+ case CPU_UP_CANCELED:
case CPU_DOWN_PREPARE:
- case CPU_DOWN_PREPARE_FROZEN:
perf_event_exit_cpu(cpu);
break;