aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2003-01-05 03:50:35 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2003-01-05 03:50:35 -0800
commit0d5f0a37701076e152323c221151874665c48852 (patch)
tree52397d288f71559354dff1d1510250c35a7145d7 /init
parentdc50fd2c544d1fa67b1c48ede2bf216877c36fb5 (diff)
downloadhistory-0d5f0a37701076e152323c221151874665c48852.tar.gz
[PATCH] move LOG_BUF_SIZE to header/config
Patch from "Randy.Dunlap" <rddunlap@osdl.org> Convert the selection of LOG_BUF_SIZE from an ifdef tangle in printk.c into config logic.
Diffstat (limited to 'init')
-rw-r--r--init/Kconfig45
1 files changed, 45 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 962d16696ef9e3..2868e39049c00c 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -82,6 +82,51 @@ config SYSCTL
building a kernel for install/rescue disks or your system is very
limited in memory.
+choice
+ prompt "Kernel log buffer size"
+ default LOG_BUF_SHIFT_17 if ARCH_S390
+ default LOG_BUF_SHIFT_16 if X86_NUMAQ || IA64
+ default LOG_BUF_SHIFT_15 if SMP
+ default LOG_BUF_SHIFT_14
+ help
+ Select kernel log buffer size from this list (power of 2).
+ Defaults: 17 (=> 128 KB for S/390)
+ 16 (=> 64 KB for x86 NUMAQ or IA-64)
+ 15 (=> 32 KB for SMP)
+ 14 (=> 16 KB for uniprocessor)
+
+config LOG_BUF_SHIFT_17
+ bool "128 KB"
+ default y if ARCH_S390
+
+config LOG_BUF_SHIFT_16
+ bool "64 KB"
+ default y if X86_NUMAQ || IA64
+
+config LOG_BUF_SHIFT_15
+ bool "32 KB"
+ default y if SMP
+
+config LOG_BUF_SHIFT_14
+ bool "16 KB"
+
+config LOG_BUF_SHIFT_13
+ bool "8 KB"
+
+config LOG_BUF_SHIFT_12
+ bool "4 KB"
+
+endchoice
+
+config LOG_BUF_SHIFT
+ int
+ default 17 if LOG_BUF_SHIFT_17=y
+ default 16 if LOG_BUF_SHIFT_16=y
+ default 15 if LOG_BUF_SHIFT_15=y
+ default 14 if LOG_BUF_SHIFT_14=y
+ default 13 if LOG_BUF_SHIFT_13=y
+ default 12 if LOG_BUF_SHIFT_12=y
+
endmenu