cns3xxx: fix shared PCI interrupt mapping
[openwrt/staging/yousong.git] / target / linux / cns3xxx / patches-3.10 / 025-smp_support.patch
1 --- a/arch/arm/mach-cns3xxx/Makefile
2 +++ b/arch/arm/mach-cns3xxx/Makefile
3 @@ -5,3 +5,5 @@ cns3xxx-y += core.o pm.o
4 cns3xxx-$(CONFIG_ATAGS) += devices.o
5 cns3xxx-$(CONFIG_PCI) += pcie.o
6 cns3xxx-$(CONFIG_MACH_CNS3420VB) += cns3420vb.o
7 +cns3xxx-$(CONFIG_SMP) += platsmp.o headsmp.o
8 +cns3xxx-$(CONFIG_HOTPLUG_CPU) += hotplug.o
9 --- a/arch/arm/mach-cns3xxx/Kconfig
10 +++ b/arch/arm/mach-cns3xxx/Kconfig
11 @@ -6,6 +6,9 @@ config ARCH_CNS3XXX
12 select MIGHT_HAVE_CACHE_L2X0
13 select MIGHT_HAVE_PCI
14 select PCI_DOMAINS if PCI
15 + select HAVE_ARM_SCU if SMP
16 + select HAVE_ARM_TWD if LOCAL_TIMERS
17 + select HAVE_SMP
18 help
19 Support for Cavium Networks CNS3XXX platform.
20
21 --- a/arch/arm/mach-cns3xxx/core.h
22 +++ b/arch/arm/mach-cns3xxx/core.h
23 @@ -11,6 +11,7 @@
24 #ifndef __CNS3XXX_CORE_H
25 #define __CNS3XXX_CORE_H
26
27 +extern struct smp_operations cns3xxx_smp_ops;
28 extern void cns3xxx_timer_init(void);
29
30 #ifdef CONFIG_CACHE_L2X0