cns3xxx: add linux 3.8 support and use it by default
[openwrt/svn-archive/archive.git] / target / linux / cns3xxx / patches-3.8 / 021-cache_force_multi.patch
1 --- a/arch/arm/Kconfig
2 +++ b/arch/arm/Kconfig
3 @@ -366,6 +366,7 @@ config ARCH_CNS3XXX
4 select MIGHT_HAVE_PCI
5 select PCI_DOMAINS if PCI
6 select CLKDEV_LOOKUP
7 + select CPU_CACHE_FORCE_MULTI
8 help
9 Support for Cavium Networks CNS3XXX platform.
10
11 --- a/arch/arm/mm/Kconfig
12 +++ b/arch/arm/mm/Kconfig
13 @@ -496,6 +496,9 @@ config CPU_CACHE_VIPT
14 config CPU_CACHE_FA
15 bool
16
17 +config CPU_CACHE_FORCE_MULTI
18 + bool
19 +
20 if MMU
21 # The copy-page model
22 config CPU_COPY_V4WT
23 --- a/arch/arm/include/asm/glue-cache.h
24 +++ b/arch/arm/include/asm/glue-cache.h
25 @@ -129,6 +129,10 @@
26 #error Unknown cache maintenance model
27 #endif
28
29 +#if defined(CONFIG_CPU_CACHE_FORCE_MULTI) && !defined(MULTI_CACHE)
30 +#define MULTI_CACHE 1
31 +#endif
32 +
33 #ifndef MULTI_CACHE
34 #define __cpuc_flush_icache_all __glue(_CACHE,_flush_icache_all)
35 #define __cpuc_flush_kern_all __glue(_CACHE,_flush_kern_cache_all)