aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/setup.c
diff options
context:
space:
mode:
authorGeorge Dunlap <george.dunlap@eu.citrix.com>2011-09-17 16:22:54 +0100
committerGeorge Dunlap <george.dunlap@eu.citrix.com>2011-09-17 16:22:54 +0100
commit375b9efe189caa4d1732286bde0a880681f224eb (patch)
tree7510e37e15dcc276c06ea6f73f9418349c245758 /xen/arch/x86/setup.c
parent251d889009995640af7c2d53eb018639d77ae98a (diff)
downloadxen-375b9efe189caa4d1732286bde0a880681f224eb.tar.gz
xen-375b9efe189caa4d1732286bde0a880681f224eb.tar.bz2
xen-375b9efe189caa4d1732286bde0a880681f224eb.zip
xen: Move tsc reliability check until after CPUs have booted
AMD CPUs by default enable X86_FEATURE_TSC_RELIABLE, and depend upon a later check to disable this feature if TSC drift is detected. Unfortunately, this check is done in time.c:init_xen_time(), which is done before any secondary CPUs are brought up, and is thus guaranteed to succed. This patch moves the check into its own function, and calls it after cpus are brought up. Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Diffstat (limited to 'xen/arch/x86/setup.c')
-rw-r--r--xen/arch/x86/setup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c
index 83d59025d1..5e45566870 100644
--- a/xen/arch/x86/setup.c
+++ b/xen/arch/x86/setup.c
@@ -1292,8 +1292,11 @@ void __init __start_xen(unsigned long mbi_p)
printk("Brought up %ld CPUs\n", (long)num_online_cpus());
smp_cpus_done();
+ verify_tsc_reliability();
+
do_initcalls();
+
if ( opt_watchdog )
watchdog_setup();