diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2013-12-01 16:36:38 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2013-12-01 16:36:38 +0000 |
commit | 25ca004f248b8a1166c9b3d645ae13aebf93b197 (patch) | |
tree | f05d78408c93650b7dda489bdf4021a62118fbce /target/linux/brcm47xx/patches-3.10/160-kmap_coherent.patch | |
parent | d7ebbd0ac7eb6cb5ab017ed3e221e51e15d673e2 (diff) | |
download | upstream-25ca004f248b8a1166c9b3d645ae13aebf93b197.tar.gz upstream-25ca004f248b8a1166c9b3d645ae13aebf93b197.tar.bz2 upstream-25ca004f248b8a1166c9b3d645ae13aebf93b197.zip |
brcm47xx: add cpu overwrites
bcm47xx misses cpu overwrites for the features of the CPUs used in
these SoCs.
Instead of manually checking, it is now known at compile time for some
options and the compiler is able to remove the checks and optimize the
code.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 38974
Diffstat (limited to 'target/linux/brcm47xx/patches-3.10/160-kmap_coherent.patch')
-rw-r--r-- | target/linux/brcm47xx/patches-3.10/160-kmap_coherent.patch | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/target/linux/brcm47xx/patches-3.10/160-kmap_coherent.patch b/target/linux/brcm47xx/patches-3.10/160-kmap_coherent.patch index 078bc0e2e1..3c9f550636 100644 --- a/target/linux/brcm47xx/patches-3.10/160-kmap_coherent.patch +++ b/target/linux/brcm47xx/patches-3.10/160-kmap_coherent.patch @@ -10,22 +10,15 @@ /* * I-Cache snoops remote store. This only matters on SMP. Some multiprocessors ---- /dev/null +--- a/arch/mips/include/asm/mach-bcm47xx/cpu-feature-overrides.h +++ b/arch/mips/include/asm/mach-bcm47xx/cpu-feature-overrides.h -@@ -0,0 +1,13 @@ -+/* -+ * This file is subject to the terms and conditions of the GNU General Public -+ * License. See the file "COPYING" in the main directory of this archive -+ * for more details. -+ * -+ * Copyright (C) 2005 Ralf Baechle (ralf@linux-mips.org) -+ */ -+#ifndef __ASM_MACH_BCM47XX_CPU_FEATURE_OVERRIDES_H -+#define __ASM_MACH_BCM47XX_CPU_FEATURE_OVERRIDES_H -+ -+#define cpu_use_kmap_coherent 0 +@@ -79,4 +79,6 @@ + #define cpu_scache_line_size() 0 + #define cpu_has_vz 0 + ++#define cpu_use_kmap_coherent 0 + -+#endif /* __ASM_MACH_BCM47XX_CPU_FEATURE_OVERRIDES_H */ + #endif /* __ASM_MACH_BCM47XX_CPU_FEATURE_OVERRIDES_H */ --- a/arch/mips/mm/c-r4k.c +++ b/arch/mips/mm/c-r4k.c @@ -509,7 +509,7 @@ static inline void local_r4k_flush_cache |