aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init/Kconfig9
-rw-r--r--init/calibrate.c14
2 files changed, 16 insertions, 7 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 412c21b00d51..e20aa3112240 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -917,6 +917,8 @@ config ANON_INODES
917 917
918menuconfig EXPERT 918menuconfig EXPERT
919 bool "Configure standard kernel features (expert users)" 919 bool "Configure standard kernel features (expert users)"
920 # Unhide debug options, to make the on-by-default options visible
921 select DEBUG_KERNEL
920 help 922 help
921 This option allows certain base kernel options and settings 923 This option allows certain base kernel options and settings
922 to be disabled or tweaked. This is for specialized 924 to be disabled or tweaked. This is for specialized
@@ -1007,14 +1009,19 @@ config ELF_CORE
1007 help 1009 help
1008 Enable support for generating core dumps. Disabling saves about 4k. 1010 Enable support for generating core dumps. Disabling saves about 4k.
1009 1011
1012
1010config PCSPKR_PLATFORM 1013config PCSPKR_PLATFORM
1011 bool "Enable PC-Speaker support" if EXPERT 1014 bool "Enable PC-Speaker support" if EXPERT
1012 depends on ALPHA || X86 || MIPS || PPC_PREP || PPC_CHRP || PPC_PSERIES 1015 depends on HAVE_PCSPKR_PLATFORM
1016 select I8253_LOCK
1013 default y 1017 default y
1014 help 1018 help
1015 This option allows to disable the internal PC-Speaker 1019 This option allows to disable the internal PC-Speaker
1016 support, saving some memory. 1020 support, saving some memory.
1017 1021
1022config HAVE_PCSPKR_PLATFORM
1023 bool
1024
1018config BASE_FULL 1025config BASE_FULL
1019 default y 1026 default y
1020 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 2568d22a304e..aae2f40fea4c 100644
--- a/init/calibrate.c
+++ b/init/calibrate.c
@@ -245,30 +245,32 @@ recalibrate:
245 245
246void __cpuinit calibrate_delay(void) 246void __cpuinit calibrate_delay(void)
247{ 247{
248 unsigned long lpj;
248 static bool printed; 249 static bool printed;
249 250
250 if (preset_lpj) { 251 if (preset_lpj) {
251 loops_per_jiffy = preset_lpj; 252 lpj = preset_lpj;
252 if (!printed) 253 if (!printed)
253 pr_info("Calibrating delay loop (skipped) " 254 pr_info("Calibrating delay loop (skipped) "
254 "preset value.. "); 255 "preset value.. ");
255 } else if ((!printed) && lpj_fine) { 256 } else if ((!printed) && lpj_fine) {
256 loops_per_jiffy = lpj_fine; 257 lpj = lpj_fine;
257 pr_info("Calibrating delay loop (skipped), " 258 pr_info("Calibrating delay loop (skipped), "
258 "value calculated using timer frequency.. "); 259 "value calculated using timer frequency.. ");
259 } else if ((loops_per_jiffy = calibrate_delay_direct()) != 0) { 260 } else if ((lpj = calibrate_delay_direct()) != 0) {
260 if (!printed) 261 if (!printed)
261 pr_info("Calibrating delay using timer " 262 pr_info("Calibrating delay using timer "
262 "specific routine.. "); 263 "specific routine.. ");
263 } else { 264 } else {
264 if (!printed) 265 if (!printed)
265 pr_info("Calibrating delay loop... "); 266 pr_info("Calibrating delay loop... ");
266 loops_per_jiffy = calibrate_delay_converge(); 267 lpj = calibrate_delay_converge();
267 } 268 }
268 if (!printed) 269 if (!printed)
269 pr_cont("%lu.%02lu BogoMIPS (lpj=%lu)\n", 270 pr_cont("%lu.%02lu BogoMIPS (lpj=%lu)\n",
270 loops_per_jiffy/(500000/HZ), 271 lpj/(500000/HZ),
271 (loops_per_jiffy/(5000/HZ)) % 100, loops_per_jiffy); 272 (lpj/(5000/HZ)) % 100, lpj);
272 273
274 loops_per_jiffy = lpj;
273 printed = true; 275 printed = true;
274} 276}