diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2009-02-17 17:08:40 +0800 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2009-06-25 10:20:23 +1000 |
commit | 1e8c3fdac4486ee8dbc67e89df34328be1b724b3 (patch) | |
tree | 2d2f0d1f6b7da73504e2e1203a6b2439abc8a598 /kernel | |
parent | e263b6eba594f9b3538f7b4bf8b42c6524670fc8 (diff) |
cpuhotplug: remove cpu_hotplug_init()
cpu_hotplug_init() is almost equal to a dummy function,
this patch remove it.
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/cpu.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/kernel/cpu.c b/kernel/cpu.c index 395b6974dc8d..609fae119e57 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -34,14 +34,9 @@ static struct { * an ongoing cpu hotplug operation. */ int refcount; -} cpu_hotplug; - -void __init cpu_hotplug_init(void) -{ - cpu_hotplug.active_writer = NULL; - mutex_init(&cpu_hotplug.lock); - cpu_hotplug.refcount = 0; -} +} cpu_hotplug = { + .lock = __MUTEX_INITIALIZER(cpu_hotplug.lock), +}; #ifdef CONFIG_HOTPLUG_CPU |