025-smp_support.patch 910 B

123456789101112131415161718192021222324252627282930
  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. @@ -2,6 +2,9 @@ menuconfig ARCH_CNS3XXX
  12. bool "Cavium Networks CNS3XXX family" if ARCH_MULTI_V6
  13. select ARM_GIC
  14. select PCI_DOMAINS if PCI
  15. + select HAVE_ARM_SCU if SMP
  16. + select HAVE_ARM_TWD
  17. + select HAVE_SMP
  18. help
  19. Support for Cavium Networks CNS3XXX platform.
  20. --- a/arch/arm/mach-cns3xxx/core.h
  21. +++ b/arch/arm/mach-cns3xxx/core.h
  22. @@ -13,6 +13,7 @@
  23. #include <linux/reboot.h>
  24. +extern struct smp_operations cns3xxx_smp_ops;
  25. extern void cns3xxx_timer_init(void);
  26. #ifdef CONFIG_CACHE_L2X0