[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1364575371-8926-2-git-send-email-stefano.stabellini@eu.citrix.com>
Date: Fri, 29 Mar 2013 16:42:50 +0000
From: Stefano Stabellini <stefano.stabellini@...citrix.com>
To: <xen-devel@...ts.xensource.com>
CC: <linux-kernel@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
<Stefano.Stabellini@...citrix.com>,
Stefano Stabellini <stefano.stabellini@...citrix.com>,
<will.deacon@....com>, <arnd@...db.de>, <marc.zyngier@....com>,
<linux@....linux.org.uk>, <nico@...aro.org>
Subject: [PATCH v4 2/2] arm: prefer PSCI for SMP bringup
If PSCI initializes correctly and PSCI SMP operations are available, use them.
This is required for SMP support in Dom0 on Xen.
Signed-off-by: Stefano Stabellini <stefano.stabellini@...citrix.com>
CC: will.deacon@....com
CC: arnd@...db.de
CC: marc.zyngier@....com
CC: linux@....linux.org.uk
CC: nico@...aro.org
---
arch/arm/kernel/setup.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
index 341efaa..c7e50dd 100644
--- a/arch/arm/kernel/setup.c
+++ b/arch/arm/kernel/setup.c
@@ -770,10 +770,10 @@ void __init setup_arch(char **cmdline_p)
psci_init();
#ifdef CONFIG_SMP
if (is_smp()) {
- if (mdesc->smp)
- smp_set_ops(mdesc->smp);
- else if (psci_smp_available())
+ if (psci_smp_available())
smp_set_ops(&psci_smp_ops);
+ else
+ smp_set_ops(mdesc->smp);
smp_init_cpus();
}
#endif
--
1.7.2.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists