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:
2020002
)
generic-ipi: fix hotplug_cfd()
author
Xiao Guangrong
<
[email protected]
>
Thu, 6 Aug 2009 22:07:29 +0000
(15:07 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 7 Aug 2009 17:39:55 +0000
(10:39 -0700)
Use CONFIG_HOTPLUG_CPU, not CONFIG_CPU_HOTPLUG
When hot-unpluging a cpu, it will leak memory allocated at cpu hotplug,
but only if CPUMASK_OFFSTACK=y, which is default to n.
The bug was introduced by
8969a5ede0f9e17da4b943712429aef2c9bcd82b
("generic-ipi: remove kmalloc()").
Signed-off-by: Xiao Guangrong <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Jens Axboe <
[email protected]
>
Cc: Nick Piggin <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Rusty Russell <
[email protected]
>
Cc: <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
kernel/smp.c
patch
|
blob
|
history
diff --git
a/kernel/smp.c
b/kernel/smp.c
index ad63d8501207836353ad91d15f94fb3aaa4c0c1b..94188b8ecc33ea2bc7a232cd0ca362aa15f753fb 100644
(file)
--- a/
kernel/smp.c
+++ b/
kernel/smp.c
@@
-57,7
+57,7
@@
hotplug_cfd(struct notifier_block *nfb, unsigned long action, void *hcpu)
return NOTIFY_BAD;
break;
-#ifdef CONFIG_
CPU_HOTPLUG
+#ifdef CONFIG_
HOTPLUG_CPU
case CPU_UP_CANCELED:
case CPU_UP_CANCELED_FROZEN: