diff options
author | Will Deacon <will.deacon@arm.com> | 2012-12-13 13:10:40 +0000 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2013-02-02 15:05:33 +0000 |
commit | 4de3abb348d7a5bd6ddbfc26c34e0ee549874249 (patch) | |
tree | 9c59ed42967e4cc9a87fa44357558ccd1256b0ef /arch/arm/mach-virt/virt.c | |
parent | 2a0ba7388092b07732dc772c042273a3b40d90de (diff) |
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.c | 4 |
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 |