summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2011-01-19 21:03:22 +0000
committerColin Percival <cperciva@FreeBSD.org>2011-01-19 21:03:22 +0000
commit4d1edd49d4ee2e10dbfa0765d9e2e5e9e8cd7abc (patch)
treeed55592cd96c7b07fdafdc69e66c86b005b81289
parentcd13d68f16444b77ce797831ee05f76a4da1188c (diff)
Notes
-rw-r--r--sys/i386/i386/machdep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c
index 5841f83a971c..dd276e054630 100644
--- a/sys/i386/i386/machdep.c
+++ b/sys/i386/i386/machdep.c
@@ -1228,6 +1228,7 @@ cpu_idle_acpi(int busy)
static int cpu_ident_amdc1e = 0;
+#if !defined(XEN) || defined(XEN_PRIVILEGED)
static int
cpu_probe_amdc1e(void)
{
@@ -1254,6 +1255,7 @@ cpu_probe_amdc1e(void)
#endif
return (0);
}
+#endif
/*
* C1E renders the local APIC timer dead, so we disable it by
@@ -2690,8 +2692,10 @@ init386(first)
thread0.td_pcb->pcb_fsd = PCPU_GET(fsgs_gdt)[0];
thread0.td_pcb->pcb_gsd = PCPU_GET(fsgs_gdt)[1];
+#if defined(XEN_PRIVILEGED)
if (cpu_probe_amdc1e())
cpu_idle_fn = cpu_idle_amdc1e;
+#endif
}
#else