|
|
|
@ -113,7 +113,7 @@ EXPORT_SYMBOL_GPL(put_online_cpus); |
|
|
|
|
* get_online_cpus() not an api which is called all that often. |
|
|
|
|
* |
|
|
|
|
*/ |
|
|
|
|
static void cpu_hotplug_begin(void) |
|
|
|
|
void cpu_hotplug_begin(void) |
|
|
|
|
{ |
|
|
|
|
cpu_hotplug.active_writer = current; |
|
|
|
|
|
|
|
|
@ -127,7 +127,7 @@ static void cpu_hotplug_begin(void) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void cpu_hotplug_done(void) |
|
|
|
|
void cpu_hotplug_done(void) |
|
|
|
|
{ |
|
|
|
|
cpu_hotplug.active_writer = NULL; |
|
|
|
|
mutex_unlock(&cpu_hotplug.lock); |
|
|
|
@ -154,10 +154,7 @@ void cpu_hotplug_enable(void) |
|
|
|
|
cpu_maps_update_done(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#else /* #if CONFIG_HOTPLUG_CPU */ |
|
|
|
|
static void cpu_hotplug_begin(void) {} |
|
|
|
|
static void cpu_hotplug_done(void) {} |
|
|
|
|
#endif /* #else #if CONFIG_HOTPLUG_CPU */ |
|
|
|
|
#endif /* CONFIG_HOTPLUG_CPU */ |
|
|
|
|
|
|
|
|
|
/* Need to know about CPUs going up/down? */ |
|
|
|
|
int __ref register_cpu_notifier(struct notifier_block *nb) |
|
|
|
|