summaryrefslogtreecommitdiffstats
path: root/arch/mips/Kconfig.debug
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@imgtec.com>2015-09-22 10:10:56 -0700
committerRalf Baechle <ralf@linux-mips.org>2015-10-26 09:49:42 +0100
commitd478b088a2f74fc8f34af7ceed86fa7640ca8610 (patch)
tree572d51384469da8a3bda7952f31e17fc5abfa6e9 /arch/mips/Kconfig.debug
parent75dcfc1d678d76a82288c043bfd5bfc0fbd43b49 (diff)
downloadblackbird-op-linux-d478b088a2f74fc8f34af7ceed86fa7640ca8610.tar.gz
blackbird-op-linux-d478b088a2f74fc8f34af7ceed86fa7640ca8610.zip
MIPS: Allow L2 prefetch to be configured via debugfs
When debugging or examining the performance of a system it can be useful to examine the effect of L2 prefetching. Provide an optional debugfs entry to allow a user to enable or disable L2 prefetching. Signed-off-by: Paul Burton <paul.burton@imgtec.com> Cc: Maciej W. Rozycki <macro@linux-mips.org> Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/11182/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/Kconfig.debug')
-rw-r--r--arch/mips/Kconfig.debug10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/mips/Kconfig.debug b/arch/mips/Kconfig.debug
index 13d796547ebd..b43e288ec567 100644
--- a/arch/mips/Kconfig.debug
+++ b/arch/mips/Kconfig.debug
@@ -149,4 +149,14 @@ endchoice
endif # CPU_MIPSR6
+config SCACHE_DEBUGFS
+ bool "L2 cache debugfs entries"
+ depends on DEBUG_FS
+ help
+ Enable this to allow parts of the L2 cache configuration, such as
+ whether or not prefetching is enabled, to be exposed to userland
+ via debugfs.
+
+ If unsure, say N.
+
endmenu
OpenPOWER on IntegriCloud