MIPS: Use CONFIG_CPU_MIPSR2 in csum_partial.S
authorGabor Juhos <juhosg@openwrt.org>
Sun, 3 Mar 2013 11:39:35 +0000 (11:39 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 12 Mar 2013 09:18:18 +0000 (10:18 +0100)
commite744109fce4b9581acdc23287667e240bcd239b7
treef9c57e618e7e635209ea740a6b105f7f29e1aee4
parent63981a4096081f3a35351f56fa89e91f493c02c7
MIPS: Use CONFIG_CPU_MIPSR2 in csum_partial.S

The csum_partial implementation contain optimalizations for the MIPS R2
instruction set. This optimization 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>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/4971/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/lib/csum_partial.S