aboutsummaryrefslogtreecommitdiffstats
path: root/arch/microblaze/Kconfig
diff options
context:
space:
mode:
authorSteven J. Magnani <steve@digidescorp.com>2010-05-13 11:48:27 -0400
committerMichal Simek <monstr@monstr.eu>2010-08-04 04:22:34 -0400
commitba9c4f88d747836bf35c3eee36aa18d2e164f493 (patch)
treed244c9946b40af1ea21a1b71d3e49efa513bb4b7 /arch/microblaze/Kconfig
parent0d9ec762af297f1ef38114f9498322d994063802 (diff)
microblaze: Allow PAGE_SIZE configuration
Allow developer to configure memory page size at compile time. Larger pages can improve performance on some workloads. Based on PowerPC code. Signed-off-by: Steven J. Magnani <steve@digidescorp.com> Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/Kconfig')
-rw-r--r--arch/microblaze/Kconfig30
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig
index 505a08592423..a51742190c12 100644
--- a/arch/microblaze/Kconfig
+++ b/arch/microblaze/Kconfig
@@ -223,6 +223,36 @@ config TASK_SIZE
223 hex "Size of user task space" if TASK_SIZE_BOOL 223 hex "Size of user task space" if TASK_SIZE_BOOL
224 default "0x80000000" 224 default "0x80000000"
225 225
226choice
227 prompt "Page size"
228 default MICROBLAZE_4K_PAGES
229 depends on ADVANCED_OPTIONS && !MMU
230 help
231 Select the kernel logical page size. Increasing the page size
232 will reduce software overhead at each page boundary, allow
233 hardware prefetch mechanisms to be more effective, and allow
234 larger dma transfers increasing IO efficiency and reducing
235 overhead. However the utilization of memory will increase.
236 For example, each cached file will using a multiple of the
237 page size to hold its contents and the difference between the
238 end of file and the end of page is wasted.
239
240 If unsure, choose 4K_PAGES.
241
242config MICROBLAZE_4K_PAGES
243 bool "4k page size"
244
245config MICROBLAZE_8K_PAGES
246 bool "8k page size"
247
248config MICROBLAZE_16K_PAGES
249 bool "16k page size"
250
251config MICROBLAZE_32K_PAGES
252 bool "32k page size"
253
254endchoice
255
226endmenu 256endmenu
227 257
228source "mm/Kconfig" 258source "mm/Kconfig"