summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorIan Wienand <ianw@gelato.unsw.edu.au>2005-07-14 04:09:00 (GMT)
committerTony Luck <tony.luck@intel.com>2005-07-14 16:21:47 (GMT)
commit46906c4415f88cebfad530917bada0835d651824 (patch)
tree44aef0f11d6499ed802f43949e0e8ad193d9716e /arch
parent514fd7fd01d378a7b5584c657d9807fc28f22079 (diff)
downloadlinux-fsl-qoriq-46906c4415f88cebfad530917bada0835d651824.tar.xz
[IA64] Fix undefined reference to can_cpei_retarget for simulator
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/ia64/kernel/topology.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/ia64/kernel/topology.c b/arch/ia64/kernel/topology.c
index d8030f3..92ff46a 100644
--- a/arch/ia64/kernel/topology.c
+++ b/arch/ia64/kernel/topology.c
@@ -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);
}