diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-03-07 17:56:53 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-03-07 17:56:53 +0000 |
commit | 3abf5ce6564e24a388b86caf1a00f91f4262b312 (patch) | |
tree | 77c12b89874795e1d0627b9106d526a6660e4cc1 /target/linux/ramips/patches-4.3/0058-backport-ensure-core-other-GCR-reflect-correct-core.patch | |
parent | f73d8fb81bd847c61cd3fba2a8b1240619009aff (diff) | |
download | master-31e0f0ae-3abf5ce6564e24a388b86caf1a00f91f4262b312.tar.gz master-31e0f0ae-3abf5ce6564e24a388b86caf1a00f91f4262b312.tar.bz2 master-31e0f0ae-3abf5ce6564e24a388b86caf1a00f91f4262b312.zip |
ramips: convert the remaining subtargets to 4.4
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48954
Diffstat (limited to 'target/linux/ramips/patches-4.3/0058-backport-ensure-core-other-GCR-reflect-correct-core.patch')
-rw-r--r-- | target/linux/ramips/patches-4.3/0058-backport-ensure-core-other-GCR-reflect-correct-core.patch | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/target/linux/ramips/patches-4.3/0058-backport-ensure-core-other-GCR-reflect-correct-core.patch b/target/linux/ramips/patches-4.3/0058-backport-ensure-core-other-GCR-reflect-correct-core.patch deleted file mode 100644 index e8ed6abf7f..0000000000 --- a/target/linux/ramips/patches-4.3/0058-backport-ensure-core-other-GCR-reflect-correct-core.patch +++ /dev/null @@ -1,49 +0,0 @@ -commit 78a54c4d8e5a7915a4ec2ba0eb461fae50590683 -Author: Paul Burton <paul.burton@imgtec.com> -Date: Tue Sep 22 11:12:18 2015 -0700 - - MIPS: CM, CPC: Ensure core-other GCRs reflect the correct core - - Ensure the update to which core the core-other GCR regions reflect has - taken place before any core-other GCRs are accessed by placing a memory - barrier (sync instruction) between the write to the core-other registers - and any such GCR accesses. - - Signed-off-by: Paul Burton <paul.burton@imgtec.com> - Cc: linux-mips@linux-mips.org - Cc: Bjorn Helgaas <bhelgaas@google.com> - Cc: linux-kernel@vger.kernel.org - Cc: Markos Chandras <markos.chandras@imgtec.com> - Patchwork: https://patchwork.linux-mips.org/patch/11209/ - Signed-off-by: Ralf Baechle <ralf@linux-mips.org> - ---- a/arch/mips/kernel/mips-cm.c -+++ b/arch/mips/kernel/mips-cm.c -@@ -278,6 +278,12 @@ void mips_cm_lock_other(unsigned int cor - } - - write_gcr_cl_other(val); -+ -+ /* -+ * Ensure the core-other region reflects the appropriate core & -+ * VP before any accesses to it occur. -+ */ -+ mb(); - } - - void mips_cm_unlock_other(void) ---- a/arch/mips/kernel/mips-cpc.c -+++ b/arch/mips/kernel/mips-cpc.c -@@ -76,6 +76,12 @@ void mips_cpc_lock_other(unsigned int co - spin_lock_irqsave(&per_cpu(cpc_core_lock, curr_core), - per_cpu(cpc_core_lock_flags, curr_core)); - write_cpc_cl_other(core << CPC_Cx_OTHER_CORENUM_SHF); -+ -+ /* -+ * Ensure the core-other region reflects the appropriate core & -+ * VP before any accesses to it occur. -+ */ -+ mb(); - } - - void mips_cpc_unlock_other(void) |