MIPS: Refactor 'clear_page' and 'copy_page' functions.
authorSteven J. Hill <sjhill@mips.com>
Fri, 6 Jul 2012 19:56:01 +0000 (21:56 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 19 Jul 2012 09:23:43 +0000 (11:23 +0200)
commitc022630633624a75b3b58f43dd3c6cc896a56cff
treeef2f21c01a55962e5e2157e7eaf6e0e49f5e5585
parent78d4803f75277f78ab4fc3be7ad462d78f726df9
MIPS: Refactor 'clear_page' and 'copy_page' functions.

Remove usage of the '__attribute__((alias("...")))' hack that aliased
to integer arrays containing micro-assembled instructions. This hack
breaks when building a microMIPS kernel. It also makes the code much
easier to understand.

[ralf@linux-mips.org: Added back export of the clear_page and copy_page
symbols so certain modules will work again.  Also fixed build with
CONFIG_SIBYTE_DMA_PAGEOPS enabled.]

Signed-off-by: Steven J. Hill <sjhill@mips.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3866/
Acked-by: David Daney <david.daney@cavium.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/mips_ksyms.c
arch/mips/mm/Makefile
arch/mips/mm/page-funcs.S [new file with mode: 0644]
arch/mips/mm/page.c