summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2004-03-18 16:02:28 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-03-18 16:02:28 -0800
commit036f21379d26fb60b6c490803abf6c7c735c4f6a (patch)
tree089b1500a73e8edb5a64087ff7983833e9503765 /include/linux
parentc884a1a3d78bc9a0bf56b11e6d84d7447d93bf00 (diff)
[PATCH] Hotplug CPUs: cpu_down()
Implement cpu_down(): uses stop_machine to freeze the machine, then uses (arch-specific) __cpu_disable() and migrate_all_tasks(). Whole thing under CONFIG_HOTPLUG_CPU, so doesn't break archs which don't define that.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/cpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h
index 83a37dc0ec3f..7ca3f486868f 100644
--- a/include/linux/cpu.h
+++ b/include/linux/cpu.h
@@ -63,6 +63,7 @@ extern struct semaphore cpucontrol;
static struct notifier_block fn##_nb = { fn, pri }; \
register_cpu_notifier(&fn##_nb); \
}
+int cpu_down(unsigned int cpu);
#define cpu_is_offline(cpu) unlikely(!cpu_online(cpu))
#else
#define lock_cpu_hotplug() do { } while (0)