summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init/Kconfig17
-rw-r--r--init/calibrate.c17
-rw-r--r--init/main.c1
3 files changed, 24 insertions, 11 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 14370d3fdf4d..e20aa3112240 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -19,7 +19,6 @@ config DEFCONFIG_LIST
19config CONSTRUCTORS 19config CONSTRUCTORS
20 bool 20 bool
21 depends on !UML 21 depends on !UML
22 default y
23 22
24config HAVE_IRQ_WORK 23config HAVE_IRQ_WORK
25 bool 24 bool
@@ -204,6 +203,15 @@ config KERNEL_LZO
204 203
205endchoice 204endchoice
206 205
206config DEFAULT_HOSTNAME
207 string "Default hostname"
208 default "(none)"
209 help
210 This option determines the default system hostname before userspace
211 calls sethostname(2). The kernel traditionally uses "(none)" here,
212 but you may wish to use a different default here to make a minimal
213 system more usable with less configuration.
214
207config SWAP 215config SWAP
208 bool "Support for paging of anonymous memory (swap)" 216 bool "Support for paging of anonymous memory (swap)"
209 depends on MMU && BLOCK 217 depends on MMU && BLOCK
@@ -1001,14 +1009,19 @@ config ELF_CORE
1001 help 1009 help
1002 Enable support for generating core dumps. Disabling saves about 4k. 1010 Enable support for generating core dumps. Disabling saves about 4k.
1003 1011
1012
1004config PCSPKR_PLATFORM 1013config PCSPKR_PLATFORM
1005 bool "Enable PC-Speaker support" if EXPERT 1014 bool "Enable PC-Speaker support" if EXPERT
1006 depends on ALPHA || X86 || MIPS || PPC_PREP || PPC_CHRP || PPC_PSERIES 1015 depends on HAVE_PCSPKR_PLATFORM
1016 select I8253_LOCK
1007 default y 1017 default y
1008 help 1018 help
1009 This option allows to disable the internal PC-Speaker 1019 This option allows to disable the internal PC-Speaker
1010 support, saving some memory. 1020 support, saving some memory.
1011 1021
1022config HAVE_PCSPKR_PLATFORM
1023 bool
1024
1012config BASE_FULL 1025config BASE_FULL
1013 default y 1026 default y
1014 bool "Enable full-sized data structures for core" if EXPERT 1027 bool "Enable full-sized data structures for core" if EXPERT
diff --git a/init/calibrate.c b/init/calibrate.c
index cfd7000c9d71..aae2f40fea4c 100644
--- a/init/calibrate.c
+++ b/init/calibrate.c
@@ -93,9 +93,6 @@ static unsigned long __cpuinit calibrate_delay_direct(void)
93 * If the upper limit and lower limit of the timer_rate is 93 * If the upper limit and lower limit of the timer_rate is
94 * >= 12.5% apart, redo calibration. 94 * >= 12.5% apart, redo calibration.
95 */ 95 */
96 printk(KERN_DEBUG "calibrate_delay_direct() timer_rate_max=%lu "
97 "timer_rate_min=%lu pre_start=%lu pre_end=%lu\n",
98 timer_rate_max, timer_rate_min, pre_start, pre_end);
99 if (start >= post_end) 96 if (start >= post_end)
100 printk(KERN_NOTICE "calibrate_delay_direct() ignoring " 97 printk(KERN_NOTICE "calibrate_delay_direct() ignoring "
101 "timer_rate as we had a TSC wrap around" 98 "timer_rate as we had a TSC wrap around"
@@ -248,30 +245,32 @@ recalibrate:
248 245
249void __cpuinit calibrate_delay(void) 246void __cpuinit calibrate_delay(void)
250{ 247{
248 unsigned long lpj;
251 static bool printed; 249 static bool printed;
252 250
253 if (preset_lpj) { 251 if (preset_lpj) {
254 loops_per_jiffy = preset_lpj; 252 lpj = preset_lpj;
255 if (!printed) 253 if (!printed)
256 pr_info("Calibrating delay loop (skipped) " 254 pr_info("Calibrating delay loop (skipped) "
257 "preset value.. "); 255 "preset value.. ");
258 } else if ((!printed) && lpj_fine) { 256 } else if ((!printed) && lpj_fine) {
259 loops_per_jiffy = lpj_fine; 257 lpj = lpj_fine;
260 pr_info("Calibrating delay loop (skipped), " 258 pr_info("Calibrating delay loop (skipped), "
261 "value calculated using timer frequency.. "); 259 "value calculated using timer frequency.. ");
262 } else if ((loops_per_jiffy = calibrate_delay_direct()) != 0) { 260 } else if ((lpj = calibrate_delay_direct()) != 0) {
263 if (!printed) 261 if (!printed)
264 pr_info("Calibrating delay using timer " 262 pr_info("Calibrating delay using timer "
265 "specific routine.. "); 263 "specific routine.. ");
266 } else { 264 } else {
267 if (!printed) 265 if (!printed)
268 pr_info("Calibrating delay loop... "); 266 pr_info("Calibrating delay loop... ");
269 loops_per_jiffy = calibrate_delay_converge(); 267 lpj = calibrate_delay_converge();
270 } 268 }
271 if (!printed) 269 if (!printed)
272 pr_cont("%lu.%02lu BogoMIPS (lpj=%lu)\n", 270 pr_cont("%lu.%02lu BogoMIPS (lpj=%lu)\n",
273 loops_per_jiffy/(500000/HZ), 271 lpj/(500000/HZ),
274 (loops_per_jiffy/(5000/HZ)) % 100, loops_per_jiffy); 272 (lpj/(5000/HZ)) % 100, lpj);
275 273
274 loops_per_jiffy = lpj;
276 printed = true; 275 printed = true;
277} 276}
diff --git a/init/main.c b/init/main.c
index cafba67c13bf..d7211faed2ad 100644
--- a/init/main.c
+++ b/init/main.c
@@ -542,6 +542,7 @@ asmlinkage void __init start_kernel(void)
542 timekeeping_init(); 542 timekeeping_init();
543 time_init(); 543 time_init();
544 profile_init(); 544 profile_init();
545 call_function_init();
545 if (!irqs_disabled()) 546 if (!irqs_disabled())
546 printk(KERN_CRIT "start_kernel(): bug: interrupts were " 547 printk(KERN_CRIT "start_kernel(): bug: interrupts were "
547 "enabled early\n"); 548 "enabled early\n");