]> 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)
commite76531f6ab60b04b9204fa8b8ae201fcc6f06e8a
treef2db98d45ac89d417f3ca2339c9cb6feb7b7f883
parente97da62af48bcb232708719ac18a6b828c59ea84
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