]> git.baikalelectronics.ru Git - kernel.git/commit
[MIPS] Reimplement clear_page/copy_page
authorThiemo Seufer <ths@networkno.de>
Mon, 18 Feb 2008 19:32:49 +0000 (19:32 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 28 Apr 2008 16:14:23 +0000 (17:14 +0100)
commita9071b6cbe23046a65a7ed2462238c7bdc0087ab
tree791190ead6211e829443185fb1d4b4109fbd9a34
parente2b6caa9821b86520827c89796427da965f897c2
[MIPS] Reimplement clear_page/copy_page

Fold the SB-1 specific implementation of clear_page/copy_page in the
generic version, and rewrite that one in tlbex style. The immediate
benefits:
  - It converts the compile-time workaround for SB-1 pass 1 prefetches
    to a more efficient run-time check.
  - It allows adjustment of loop unfolling, which helps to reduce the
    number of redundant cdex cache ops.
  - It fixes some esoteric cornercases (the cache line length calculations
    can go wrong, and support for 64k pages without prefetch instructions
    will overflow the addiu immediate).
  - Somewhat better guesses of "good" prefetch values.

Signed-off-by: Thiemo Seufer <ths@networkno.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/Makefile
arch/mips/mm/page.c [new file with mode: 0644]
arch/mips/mm/pg-r4k.c [deleted file]
arch/mips/mm/pg-sb1.c [deleted file]
arch/mips/mm/uasm.c
arch/mips/mm/uasm.h