[IA64] Fix undefined reference to can_cpei_retarget for simulator
authorIan Wienand <ianw@gelato.unsw.edu.au>
Thu, 14 Jul 2005 04:09:00 +0000 (21:09 -0700)
committerTony Luck <tony.luck@intel.com>
Thu, 14 Jul 2005 16:21:47 +0000 (09:21 -0700)
The simulator build doesn't turn on ACPI, so doesn't have a definition
of can_cpei_retarget.

Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/topology.c

index d8030f3bd8658810d9a81eda25933e46a2ff31a4..92ff46ad21e2b0f43f2990bcdf05bf1b4c72d6f8 100644 (file)
@@ -36,12 +36,14 @@ int arch_register_cpu(int num)
        parent = &sysfs_nodes[cpu_to_node(num)];
 #endif /* CONFIG_NUMA */
 
+#ifdef CONFIG_ACPI_BOOT
        /*
         * If CPEI cannot be re-targetted, and this is
         * CPEI target, then dont create the control file
         */
        if (!can_cpei_retarget() && is_cpu_cpei_target(num))
                sysfs_cpus[num].cpu.no_control = 1;
+#endif
 
        return register_cpu(&sysfs_cpus[num].cpu, num, parent);
 }