i386: no need to make enable_cpu_hotplug a variable
As long as there's no write access to this variable there's no reason to let gcc check it at runtime. [ tglx: arch/x86 adaptation ] Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
committed by
Thomas Gleixner
parent
fb7ae26df0
commit
a850cef77f
@@ -44,15 +44,15 @@ int arch_register_cpu(int num)
|
||||
* Also certain PCI quirks require not to enable hotplug control
|
||||
* for all CPU's.
|
||||
*/
|
||||
if (num && enable_cpu_hotplug)
|
||||
#ifdef CONFIG_HOTPLUG_CPU
|
||||
if (num)
|
||||
cpu_devices[num].cpu.hotpluggable = 1;
|
||||
#endif
|
||||
|
||||
return register_cpu(&cpu_devices[num].cpu, num);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_HOTPLUG_CPU
|
||||
int enable_cpu_hotplug = 1;
|
||||
|
||||
void arch_unregister_cpu(int num) {
|
||||
return unregister_cpu(&cpu_devices[num].cpu);
|
||||
}
|
||||
|
Reference in New Issue
Block a user