| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH] MIPS: use CONFIG_CPU_MIPSR2 in csum_partial.S |
| From: | Gabor Juhos <juhosg@openwrt.org> |
| Date: | Sun, 3 Mar 2013 13:39:35 +0100 |
| Cc: | linux-mips@linux-mips.org, Gabor Juhos <juhosg@openwrt.org> |
| List-archive: | <http://www.linux-mips.org/archives/linux-mips/> |
| List-help: | <mailto:ecartis@linux-mips.org?Subject=help> |
| List-id: | linux-mips <linux-mips.eddie.linux-mips.org> |
| List-owner: | <mailto:ralf@linux-mips.org> |
| List-post: | <mailto:linux-mips@linux-mips.org> |
| List-software: | Ecartis version 1.0.0 |
| List-subscribe: | <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips> |
| List-unsubscribe: | <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips> |
| Sender: | linux-mips-bounce@linux-mips.org |
The csum_partial implementation contain optimalizations
for the MIPS R2 instruction set. This optimalization
is never enabled however because the if directive uses
the CPU_MIPSR2 constant which is not defined anywhere.
Use the CONFIG_CPU_MIPSR2 constant instead.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
---
arch/mips/lib/csum_partial.S | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/mips/lib/csum_partial.S b/arch/mips/lib/csum_partial.S
index 507147a..a6adffb 100644
--- a/arch/mips/lib/csum_partial.S
+++ b/arch/mips/lib/csum_partial.S
@@ -270,7 +270,7 @@ LEAF(csum_partial)
#endif
/* odd buffer alignment? */
-#ifdef CPU_MIPSR2
+#ifdef CONFIG_CPU_MIPSR2
wsbh v1, sum
movn sum, v1, t7
#else
@@ -670,7 +670,7 @@ EXC( sb t0, NBYTES-2(dst), .Ls_exc)
addu sum, v1
#endif
-#ifdef CPU_MIPSR2
+#ifdef CONFIG_CPU_MIPSR2
wsbh v1, sum
movn sum, v1, odd
#else
--
1.7.10
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | THP broken on MIPS-32 [3.8], Ben Hutchings |
|---|---|
| Next by Date: | [RFD] Memory Corruption of CPU Hotplug on MIPS (Loongson-3), Huacai Chen |
| Previous by Thread: | THP broken on MIPS-32 [3.8], Ben Hutchings |
| Next by Thread: | Re: [PATCH] MIPS: use CONFIG_CPU_MIPSR2 in csum_partial.S, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |