Skip to contentSkip to conversation

MIPS: use CONFIG_CPU_MIPSR2 in csum_partial.S

PATCH Applied Gabor Juhos 2 participants 2 messages Mar 3, 2013 – Mar 12, 2013 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: use CONFIG_CPU_MIPSR2 in csum_partial.S

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.

---
 arch/mips/lib/csum_partial.S |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/mips/lib/csum_partial.S +2 -2
index 507147a..a6adffb 100644
@@ -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
Signature · 1 line
1.7.10
Applied
#1 lore raw

On Sun, Mar 03, 2013 at 01:39:35PM +0100, Gabor Juhos wrote:

Thanks, applied.

Ralf