aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/xen
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2013-05-08 07:59:01 -0400
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2013-05-13 12:13:04 -0400
commit1aa3d8d9935dfb459d64f06ccd828b56147fd971 (patch)
treead07113278fbe2a251a49e147819469bd5724ee4 /arch/arm/xen
parent9bc25a1d5f95f97e9e378620a46e954d3f842641 (diff)
xen/arm: initialize pm functions later
If we are running in dom0, we have to wait for the arch specific code to complete the initialization in order for us to successfully reset the power_off and pm_restart functions. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'arch/arm/xen')
-rw-r--r--arch/arm/xen/enlighten.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/xen/enlighten.c b/arch/arm/xen/enlighten.c
index d30042e39974..83d13b0d5f74 100644
--- a/arch/arm/xen/enlighten.c
+++ b/arch/arm/xen/enlighten.c
@@ -272,12 +272,18 @@ static int __init xen_guest_init(void)
272 if (!xen_initial_domain()) 272 if (!xen_initial_domain())
273 xenbus_probe(NULL); 273 xenbus_probe(NULL);
274 274
275 return 0;
276}
277core_initcall(xen_guest_init);
278
279static int __init xen_pm_init(void)
280{
275 pm_power_off = xen_power_off; 281 pm_power_off = xen_power_off;
276 arm_pm_restart = xen_restart; 282 arm_pm_restart = xen_restart;
277 283
278 return 0; 284 return 0;
279} 285}
280core_initcall(xen_guest_init); 286subsys_initcall(xen_pm_init);
281 287
282static irqreturn_t xen_arm_callback(int irq, void *arg) 288static irqreturn_t xen_arm_callback(int irq, void *arg)
283{ 289{