]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/tile/Kconfig
arch/tile: Allow tilegx to build with either 16K or 64K page size
[karo-tx-linux.git] / arch / tile / Kconfig
index 74239dd77e066e6c873ee5781f53304ab5c8b4b7..38c3957e0b40e931d02840f0ec8c0ee015ab33d6 100644 (file)
@@ -139,6 +139,31 @@ config NR_CPUS
          smaller kernel memory footprint results from using a smaller
          value on chips with fewer tiles.
 
+if TILEGX
+
+choice
+       prompt "Kernel page size"
+       default PAGE_SIZE_64KB
+       help
+         This lets you select the page size of the kernel.  For best
+         performance on memory-intensive applications, a page size of 64KB
+         is recommended.  For workloads involving many small files, many
+         connections, etc., it may be better to select 16KB, which uses
+         memory more efficiently at some cost in TLB performance.
+
+         Note that this option is TILE-Gx specific; currently
+         TILEPro page size is set by rebuilding the hypervisor.
+
+config PAGE_SIZE_16KB
+       bool "16KB"
+
+config PAGE_SIZE_64KB
+       bool "64KB"
+
+endchoice
+
+endif
+
 source "kernel/time/Kconfig"
 
 source "kernel/Kconfig.hz"