aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm47xx/patches-3.10/160-kmap_coherent.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2013-12-01 16:36:38 +0000
committerHauke Mehrtens <hauke@openwrt.org>2013-12-01 16:36:38 +0000
commit8fdbb2087df6d0c2ddb23ce4704a032bb2aed7d4 (patch)
tree71427f2aa3ccc632f4ddf793cdba0324b050dc24 /target/linux/brcm47xx/patches-3.10/160-kmap_coherent.patch
parenta51770782a28c2b23ee39a58942fa53482406823 (diff)
downloadmaster-187ad058-8fdbb2087df6d0c2ddb23ce4704a032bb2aed7d4.tar.gz
master-187ad058-8fdbb2087df6d0c2ddb23ce4704a032bb2aed7d4.tar.bz2
master-187ad058-8fdbb2087df6d0c2ddb23ce4704a032bb2aed7d4.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> 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