From 4de3abb348d7a5bd6ddbfc26c34e0ee549874249 Mon Sep 17 00:00:00 2001 From: Will Deacon Date: Thu, 13 Dec 2012 13:10:40 +0000 Subject: 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 Reviewed-by: Nicolas Pitre Signed-off-by: Will Deacon --- arch/arm/mach-virt/virt.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'arch/arm/mach-virt/virt.c') 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 #include #include +#include #include #include @@ -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 -- cgit v1.2.3