summaryrefslogtreecommitdiff
path: root/target/linux/brcm47xx/patches-3.10/160-kmap_coherent.patch
diff options
context:
space:
mode:
authorhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-12-01 16:36:38 +0000
committerhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-12-01 16:36:38 +0000
commitab5c1bd1dc3495eea1c828325cb15678db734c5b (patch)
tree71427f2aa3ccc632f4ddf793cdba0324b050dc24 /target/linux/brcm47xx/patches-3.10/160-kmap_coherent.patch
parent86b4d5ef68ca77ff6724ebb9bddd6b93239c87fc (diff)
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38974 3c298f89-4303-0410-b956-a3cf2f4a3e73
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.patch21
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