]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: cpu: Add 'noftlb' kernel command line option to disable the FTLB
authorMarkos Chandras <markos.chandras@imgtec.com>
Fri, 29 Aug 2014 08:37:26 +0000 (09:37 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 24 Nov 2014 06:44:51 +0000 (07:44 +0100)
commitb7e006f5664b1d318e1119ae427e4062886e50be
treef2db98d45ac89d417f3ca2339c9cb6feb7b7f883
parentfab97993287a8d88b369fc66c19bad30d789cbbc
MIPS: cpu: Add 'noftlb' kernel command line option to disable the FTLB

Add new 'noftlb' kernel command line option to disable the FTLB.
Since the kernel command line is not available when probing and
enabling the CPU features in cpu_probe(), we let the kernel configure
the FTLB during the config4 decode operation and we disable the FTLB later
on, once the command line has become available to us. This should have
no negative effects since FTLB isn't used so early in the boot process.
FTLB increases the effective TLB size leading to less TLB misses. However,
sometimes it's useful to be able to disable it when debugging memory related
core features or other hardware components.

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/7586/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/cpu-probe.c