cns3xxx: add linux 3.8 support and use it by default
[openwrt/svn-archive/archive.git] / target / linux / cns3xxx / patches-3.8 / 025-smp_support.patch
1 --- a/arch/arm/mach-cns3xxx/Makefile
2 +++ b/arch/arm/mach-cns3xxx/Makefile
3 @@ -1,3 +1,5 @@
4 obj-$(CONFIG_ARCH_CNS3XXX) += core.o pm.o devices.o
5 obj-$(CONFIG_PCI) += pcie.o
6 obj-$(CONFIG_MACH_CNS3420VB) += cns3420vb.o
7 +obj-$(CONFIG_SMP) += platsmp.o headsmp.o
8 +obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o
9 --- a/arch/arm/Kconfig
10 +++ b/arch/arm/Kconfig
11 @@ -367,6 +367,7 @@ config ARCH_CNS3XXX
12 select PCI_DOMAINS if PCI
13 select CLKDEV_LOOKUP
14 select CPU_CACHE_FORCE_MULTI
15 + select HAVE_SMP
16 help
17 Support for Cavium Networks CNS3XXX platform.
18
19 --- a/arch/arm/mach-cns3xxx/core.h
20 +++ b/arch/arm/mach-cns3xxx/core.h
21 @@ -11,6 +11,7 @@
22 #ifndef __CNS3XXX_CORE_H
23 #define __CNS3XXX_CORE_H
24
25 +extern struct smp_operations cns3xxx_smp_ops;
26 extern struct sys_timer cns3xxx_timer;
27
28 #ifdef CONFIG_CACHE_L2X0
29 --- a/arch/arm/mach-cns3xxx/laguna.c
30 +++ b/arch/arm/mach-cns3xxx/laguna.c
31 @@ -946,6 +946,7 @@ static int __init laguna_model_setup(voi
32 late_initcall(laguna_model_setup);
33
34 MACHINE_START(GW2388, "Gateworks Corporation Laguna Platform")
35 + .smp = smp_ops(cns3xxx_smp_ops),
36 .atag_offset = 0x100,
37 .map_io = laguna_map_io,
38 .init_irq = cns3xxx_init_irq,