MIPS: Unify memcpy.S and memcpy-inatomic.S
authorDavid Daney <david.daney@cavium.com>
Wed, 6 Jun 2012 22:00:31 +0000 (23:00 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 23 Jul 2012 12:55:55 +0000 (13:55 +0100)
commitbb0757ebb929d5d6ba484b4313976847285ba280
treef3a138d260d52fca71d7170e42415235ce6cc46b
parent914f848077fb2ec0ec9c041af9ae1101ed0320f3
MIPS: Unify memcpy.S and memcpy-inatomic.S

We can save the 451 lines of code that comprise memcpy-inatomic.S at the
expense of a single instruction in the memcpy prolog.  We also use an
additional register (t6), so this may cause increased register pressure in
some places as well.  But I think the reduced maintenance burden, of not
having two nearly identical implementations, makes it worth it.

Signed-off-by: David Daney <david.daney@cavium.com>
Cc: linux-mips@linux-mips.org
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/uaccess.h
arch/mips/lib/Makefile
arch/mips/lib/memcpy-inatomic.S [deleted file]
arch/mips/lib/memcpy.S