From: Wu Fei Date: Thu, 3 Sep 2009 14:29:53 +0000 (+0800) Subject: MIPS: Shrink the size of tlb handler X-Git-Tag: v2.6.32-rc1~658^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0cc87f59490d7d62a8ab2a76498dc8a2b64927a;p=pandora-kernel.git 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 Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed