MIPS: use CONFIG_CPU_MIPSR2 in csum_partial.S
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.
Signed-off-by Gabor Juhos <[email protected]>
--- arch/mips/lib/csum_partial.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/mips/lib/csum_partial.S +2 -2
@@ -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
Ralf Baechle
AppliedOn Sun, Mar 03, 2013 at 01:39:35PM +0100, Gabor Juhos wrote:
Thanks, applied.
Ralf