summaryrefslogtreecommitdiff
path: root/arch/arm/mach-virt/virt.c
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2012-12-13 17:10:40 +0400
committerWill Deacon <will.deacon@arm.com>2013-02-02 19:05:33 +0400
commit4de3abb348d7a5bd6ddbfc26c34e0ee549874249 (patch)
tree9c59ed42967e4cc9a87fa44357558ccd1256b0ef /arch/arm/mach-virt/virt.c
parent2a0ba7388092b07732dc772c042273a3b40d90de (diff)
downloadlinux-4de3abb348d7a5bd6ddbfc26c34e0ee549874249.tar.xz
ARM: mach-virt: add SMP support using PSCI
This patch adds support for SMP to mach-virt using the PSCI infrastructure. Acked-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Nicolas Pitre <nico@linaro.org> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm/mach-virt/virt.c')
-rw-r--r--arch/arm/mach-virt/virt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-virt/virt.c b/arch/arm/mach-virt/virt.c
index d8a84b53fe0c..f6ed9cfeb287 100644
--- a/arch/arm/mach-virt/virt.c
+++ b/arch/arm/mach-virt/virt.c
@@ -21,6 +21,7 @@
#include <linux/irqchip.h>
#include <linux/of_irq.h>
#include <linux/of_platform.h>
+#include <linux/smp.h>
#include <asm/arch_timer.h>
#include <asm/mach/arch.h>
@@ -46,9 +47,12 @@ static struct sys_timer virt_timer = {
.init = virt_timer_init,
};
+extern struct smp_operations virt_smp_ops;
+
DT_MACHINE_START(VIRT, "Dummy Virtual Machine")
.init_irq = irqchip_init,
.timer = &virt_timer,
.init_machine = virt_init,
+ .smp = smp_ops(virt_smp_ops),
.dt_compat = virt_dt_match,
MACHINE_END