MIPS: Limit fixrange_init() to the FIXMAP region
authorKevin Cernekee <cernekee@gmail.com>
Thu, 6 Jan 2011 07:31:30 +0000 (23:31 -0800)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 25 Jul 2011 16:26:54 +0000 (17:26 +0100)
commit464fd83e841a16f4ea1325b33eb08170ef5cd1f4
tree2e182c5da3bf09701e048ec7edef90665feb9f44
parent273f2d7e64f9fd22192b4cd31e7408284a721e69
MIPS: Limit fixrange_init() to the FIXMAP region

fixrange_init() allocates page tables for all addresses higher than
FIXADDR_TOP.  On processors that override the default FIXADDR_TOP
address of 0xfffe_0000, this can consume up to 4 pages (1 page per 4MB)
for pgd's that are never used.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/1980/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/init.c
arch/mips/mm/pgtable-32.c
arch/mips/mm/pgtable-64.c