diff options
author | Gautham R Shenoy <ego@in.ibm.com> | 2008-01-25 21:08:01 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-25 21:08:01 +0100 |
commit | d221938c049f4845da13c8593132595a6b9222a8 (patch) | |
tree | 8eae6c7095a3d7d31d7435befc30019540a4d13e /init | |
parent | 6b2d7700266b9402e12824e11e0099ae6a4a6a79 (diff) | |
download | kernel-common-d221938c049f4845da13c8593132595a6b9222a8.tar.gz kernel-common-d221938c049f4845da13c8593132595a6b9222a8.tar.bz2 kernel-common-d221938c049f4845da13c8593132595a6b9222a8.zip |
cpu-hotplug: refcount based cpu hotplug
This patch implements a Refcount + Waitqueue based model for
cpu-hotplug.
Now, a thread which wants to prevent cpu-hotplug, will bump up a global
refcount and the thread which wants to perform a cpu-hotplug operation
will block till the global refcount goes to zero.
The readers, if any, during an ongoing cpu-hotplug operation are blocked
until the cpu-hotplug operation is over.
Signed-off-by: Gautham R Shenoy <ego@in.ibm.com>
Signed-off-by: Paul Jackson <pj@sgi.com> [For !CONFIG_HOTPLUG_CPU ]
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'init')
-rw-r--r-- | init/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/init/main.c b/init/main.c index 80b04b6c5157..f287ca5862b9 100644 --- a/init/main.c +++ b/init/main.c @@ -607,6 +607,7 @@ asmlinkage void __init start_kernel(void) vfs_caches_init_early(); cpuset_init_early(); mem_init(); + cpu_hotplug_init(); kmem_cache_init(); setup_per_cpu_pageset(); numa_policy_init(); |