summaryrefslogtreecommitdiffstats
path: root/arch/mips/mm/fault.c
diff options
context:
space:
mode:
authorWu Fei <at.wufei@gmail.com>2009-09-03 16:29:53 +0200
committerRalf Baechle <ralf@linux-mips.org>2009-09-17 20:07:51 +0200
commite0cc87f59490d7d62a8ab2a76498dc8a2b64927a (patch)
treed68107417b92d83493bbb95c08af98b0f8597220 /arch/mips/mm/fault.c
parentMIPS: Alchemy: override loops_per_jiffy detection (diff)
downloadlinux-e0cc87f59490d7d62a8ab2a76498dc8a2b64927a.tar.xz
linux-e0cc87f59490d7d62a8ab2a76498dc8a2b64927a.zip
MIPS: Shrink the size of tlb handler
By combining swapper_pg_dir and module_pg_dir, several if conditions can be eliminated from the tlb exception handler. The reason they can be combined is that, the effective virtual address of vmalloc returned is at the bottom, and of module_alloc returned is at the top. It also fixes the bug in vmalloc(), which happens when its return address is not covered by the first pgd. Signed-off-by: Wu Fei <at.wufei@gmail.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mm/fault.c')
0 files changed, 0 insertions, 0 deletions