]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: Align swapper_pg_dir to 64K for better TLB Refill code.
authorDavid Daney <david.daney@cavium.com>
Tue, 14 Aug 2012 18:08:01 +0000 (11:08 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 15 Aug 2012 11:30:43 +0000 (13:30 +0200)
commitd9eb0b760b23e1b9a5e5f48d4889ee0647244eb4
tree9ccbf25d28a825875b7ad4a2ce4b39c4e648a79d
parent79d2e558e3f42ea4df292f704355f8313b50caf9
MIPS: Align swapper_pg_dir to 64K for better TLB Refill code.

We can save an instruction in the TLB Refill path for kernel mappings
by aligning swapper_pg_dir on a 64K boundary.  The address of
swapper_pg_dir can be generated with a single LUI instead of
LUI/{D}ADDUI.

The alignment of __init_end is bumped up to 64K so there are no holes
between it and swapper_pg_dir, which is placed at the very beginning
of .bss.

The alignment of invalid_pmd_table and invalid_pte_table can be
relaxed to PAGE_SIZE.  We do this by using __page_aligned_bss, which
has the added benefit of eliminating alignment holes in .bss.

Signed-off-by: David Daney <david.daney@cavium.com>
Cc: linux-mips@linux-mips.org
Cc: linux-arch@vger.kernel.org,
Cc: linux-kernel@vger.kernel.org
Acked-by: Arnd Bergmann <arnd@arndb.de>
Patchwork: https://patchwork.linux-mips.org/patch/4220/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/vmlinux.lds.S
arch/mips/mm/init.c