* [PATCH] MIPS: use CONFIG_CPU_MIPSR2 in csum_partial.S
@ 2013-03-03 12:39 Gabor Juhos
2013-03-12 9:44 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Gabor Juhos @ 2013-03-03 12:39 UTC (permalink / raw)
To: Ralf Baechle; +Cc: linux-mips, Gabor Juhos
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] MIPS: use CONFIG_CPU_MIPSR2 in csum_partial.S
2013-03-03 12:39 [PATCH] MIPS: use CONFIG_CPU_MIPSR2 in csum_partial.S Gabor Juhos
@ 2013-03-12 9:44 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2013-03-12 9:44 UTC (permalink / raw)
To: Gabor Juhos; +Cc: linux-mips
On Sun, Mar 03, 2013 at 01:39:35PM +0100, Gabor Juhos wrote:
Thanks, applied.
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-12 9:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-03 12:39 [PATCH] MIPS: use CONFIG_CPU_MIPSR2 in csum_partial.S Gabor Juhos
2013-03-12 9:44 ` Ralf Baechle
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.