[IA64] Fix UP build with BSP removal support.
authorAshok Raj <ashok.raj@intel.com>
Fri, 20 Jan 2006 00:18:47 +0000 (16:18 -0800)
committerTony Luck <tony.luck@intel.com>
Fri, 20 Jan 2006 00:18:47 +0000 (16:18 -0800)
Causes undefined force_cpei_retarget defined in arch/ia64/kernel/smpboot.c
Push the unneeded code inside #ifdef CONFIG_HOTPLUG_CPU.

Signed-off-by: Ashok Raj <ashok.raj@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/acpi.c
arch/ia64/kernel/iosapic.c
arch/ia64/kernel/topology.c

index fe1d90b0c6eaaab91be6de32342c02bc507a6c12..8d350b33a20fbc96e7881736517c2fa4d23ffefc 100644 (file)
@@ -284,6 +284,7 @@ acpi_parse_plat_int_src(acpi_table_entry_header * header,
        return 0;
 }
 
+#ifdef CONFIG_HOTPLUG_CPU
 unsigned int can_cpei_retarget(void)
 {
        extern int cpe_vector;
@@ -319,6 +320,7 @@ void set_cpei_target_cpu(unsigned int cpu)
 {
        acpi_cpei_phys_cpuid = cpu_physical_id(cpu);
 }
+#endif
 
 unsigned int get_cpei_target_cpu(void)
 {
index 37ac742da8ede4de877b89018e92f144e284d2af..8832c553230ae1681e051858afd6912cb6a289f7 100644 (file)
@@ -655,8 +655,8 @@ get_target_cpu (unsigned int gsi, int vector)
                return cpu_physical_id(smp_processor_id());
 
 #ifdef CONFIG_ACPI
-               if (cpe_vector > 0 && vector == IA64_CPEP_VECTOR)
-                       return get_cpei_target_cpu();
+       if (cpe_vector > 0 && vector == IA64_CPEP_VECTOR)
+               return get_cpei_target_cpu();
 #endif
 
 #ifdef CONFIG_NUMA
index 706b7734e191efbc51112ae4adea0bbeb4d93e19..c9562d94b9c3a6e9b4bc9bc88ed49a82b980d128 100644 (file)
@@ -36,7 +36,7 @@ int arch_register_cpu(int num)
        parent = &sysfs_nodes[cpu_to_node(num)];
 #endif /* CONFIG_NUMA */
 
-#ifdef CONFIG_ACPI
+#if defined (CONFIG_ACPI) && defined (CONFIG_HOTPLUG_CPU)
        /*
         * If CPEI cannot be re-targetted, and this is
         * CPEI target, then dont create the control file