projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db912f9
)
HOTPLUG: Adapt cpuset hotplug callback to CPU_DYING
author
Avi Kivity
<avi@qumranet.com>
Thu, 24 May 2007 09:33:15 +0000
(12:33 +0300)
committer
Avi Kivity
<avi@qumranet.com>
Mon, 16 Jul 2007 09:05:49 +0000
(12:05 +0300)
CPU_DYING is called in atomic context, so don't try to take any locks.
Signed-off-by: Avi Kivity <avi@qumranet.com>
kernel/cpuset.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/cpuset.c
b/kernel/cpuset.c
index 4c49188cc49b67d6f172c5d7d12743109c1f9e3e..c4d123f74bd34eb513aafbb7ad51dd7e73b73223 100644
(file)
--- a/
kernel/cpuset.c
+++ b/
kernel/cpuset.c
@@
-2138,6
+2138,9
@@
static void common_cpu_mem_hotplug_unplug(void)
static int cpuset_handle_cpuhp(struct notifier_block *nb,
unsigned long phase, void *cpu)
{
+ if (phase == CPU_DYING || phase == CPU_DYING_FROZEN)
+ return NOTIFY_DONE;
+
common_cpu_mem_hotplug_unplug();
return 0;
}