aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/arm/setup.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2012-12-19 14:16:18 +0000
committerIan Campbell <ian.campbell@citrix.com>2012-12-19 14:16:18 +0000
commitabb4b95647262c8b9f1ae7e9b799f5151267d60b (patch)
tree63d30d564f52c2f13f3d52cba9a8c603b4592cea /xen/arch/arm/setup.c
parent0eefa58b25fa72b39592d65585a9f3324e337cfd (diff)
downloadxen-abb4b95647262c8b9f1ae7e9b799f5151267d60b.tar.gz
xen-abb4b95647262c8b9f1ae7e9b799f5151267d60b.tar.bz2
xen-abb4b95647262c8b9f1ae7e9b799f5151267d60b.zip
xen: arm: Call init_xen_time earlier
If we panic before calling init_xen_time then the "Rebooting in 5 seconds" delay ends up calling udelay which uses cntfrq before it has been initialised resulting in a divide by zero. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'xen/arch/arm/setup.c')
-rw-r--r--xen/arch/arm/setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c
index 20767246a5..7b0a0f61e1 100644
--- a/xen/arch/arm/setup.c
+++ b/xen/arch/arm/setup.c
@@ -219,6 +219,8 @@ void __init start_xen(unsigned long boot_phys_offset,
console_init_preirq();
#endif
+ init_xen_time();
+
gic_init();
make_cpus_ready(cpus, boot_phys_offset);
@@ -227,8 +229,6 @@ void __init start_xen(unsigned long boot_phys_offset,
set_current((struct vcpu *)0xfffff000); /* debug sanity */
idle_vcpu[0] = current;
- init_xen_time();
-
setup_mm(atag_paddr, fdt_size);
/* Setup Hyp vector base */