ia64: remove CONFIG_ACPI ifdefs
Now that hpsim support is gone, CONFIG_ACPI is forced on for ia64, and we can remove a few ifdefs for it. Acked-by: Tom Vaden <tom.vaden@hpe.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lkml.kernel.org/r/20190813072514.23299-20-hch@lst.de Signed-off-by: Tony Luck <tony.luck@intel.com>
This commit is contained in:

committed by
Tony Luck

parent
768557ca5b
commit
2e0f2b1659
@@ -42,7 +42,6 @@ EXPORT_SYMBOL_GPL(arch_fix_phys_package_id);
|
||||
#ifdef CONFIG_HOTPLUG_CPU
|
||||
int __ref arch_register_cpu(int num)
|
||||
{
|
||||
#ifdef CONFIG_ACPI
|
||||
/*
|
||||
* If CPEI can be re-targeted or if this is not
|
||||
* CPEI target, then it is hotpluggable
|
||||
@@ -50,7 +49,6 @@ int __ref arch_register_cpu(int num)
|
||||
if (can_cpei_retarget() || !is_cpu_cpei_target(num))
|
||||
sysfs_cpus[num].cpu.hotpluggable = 1;
|
||||
map_cpu_to_node(num, node_cpuid[num].nid);
|
||||
#endif
|
||||
return register_cpu(&sysfs_cpus[num].cpu, num);
|
||||
}
|
||||
EXPORT_SYMBOL(arch_register_cpu);
|
||||
@@ -58,9 +56,7 @@ EXPORT_SYMBOL(arch_register_cpu);
|
||||
void __ref arch_unregister_cpu(int num)
|
||||
{
|
||||
unregister_cpu(&sysfs_cpus[num].cpu);
|
||||
#ifdef CONFIG_ACPI
|
||||
unmap_cpu_from_node(num, cpu_to_node(num));
|
||||
#endif
|
||||
}
|
||||
EXPORT_SYMBOL(arch_unregister_cpu);
|
||||
#else
|
||||
|
Reference in New Issue
Block a user