aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init/Kconfig22
-rw-r--r--init/calibrate.c2
-rw-r--r--init/main.c12
3 files changed, 13 insertions, 23 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 250e02c8f8f9..c11da38837e5 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -522,7 +522,7 @@ config CC_OPTIMIZE_FOR_SIZE
522 Enabling this option will pass "-Os" instead of "-O2" to gcc 522 Enabling this option will pass "-Os" instead of "-O2" to gcc
523 resulting in a smaller kernel. 523 resulting in a smaller kernel.
524 524
525 If unsure, say N. 525 If unsure, say Y.
526 526
527config SYSCTL 527config SYSCTL
528 bool 528 bool
@@ -558,17 +558,6 @@ config SYSCTL_SYSCALL
558 558
559 If unsure say Y here. 559 If unsure say Y here.
560 560
561config SYSCTL_SYSCALL_CHECK
562 bool "Sysctl checks" if EMBEDDED
563 depends on SYSCTL_SYSCALL
564 default y
565 ---help---
566 sys_sysctl uses binary paths that have been found challenging
567 to properly maintain and use. This enables checks that help
568 you to keep things correct.
569
570 If unsure say Y here.
571
572config KALLSYMS 561config KALLSYMS
573 bool "Load all symbols for debugging/ksymoops" if EMBEDDED 562 bool "Load all symbols for debugging/ksymoops" if EMBEDDED
574 default y 563 default y
@@ -845,9 +834,10 @@ menuconfig MODULES
845 834
846 If unsure, say Y. 835 If unsure, say Y.
847 836
837if MODULES
838
848config MODULE_FORCE_LOAD 839config MODULE_FORCE_LOAD
849 bool "Forced module loading" 840 bool "Forced module loading"
850 depends on MODULES
851 default n 841 default n
852 help 842 help
853 Allow loading of modules without version information (ie. modprobe 843 Allow loading of modules without version information (ie. modprobe
@@ -856,7 +846,6 @@ config MODULE_FORCE_LOAD
856 846
857config MODULE_UNLOAD 847config MODULE_UNLOAD
858 bool "Module unloading" 848 bool "Module unloading"
859 depends on MODULES
860 help 849 help
861 Without this option you will not be able to unload any 850 Without this option you will not be able to unload any
862 modules (note that some modules may not be unloadable 851 modules (note that some modules may not be unloadable
@@ -875,7 +864,6 @@ config MODULE_FORCE_UNLOAD
875 864
876config MODVERSIONS 865config MODVERSIONS
877 bool "Module versioning support" 866 bool "Module versioning support"
878 depends on MODULES
879 help 867 help
880 Usually, you have to use modules compiled with your kernel. 868 Usually, you have to use modules compiled with your kernel.
881 Saying Y here makes it sometimes possible to use modules 869 Saying Y here makes it sometimes possible to use modules
@@ -886,7 +874,6 @@ config MODVERSIONS
886 874
887config MODULE_SRCVERSION_ALL 875config MODULE_SRCVERSION_ALL
888 bool "Source checksum for all modules" 876 bool "Source checksum for all modules"
889 depends on MODULES
890 help 877 help
891 Modules which contain a MODULE_VERSION get an extra "srcversion" 878 Modules which contain a MODULE_VERSION get an extra "srcversion"
892 field inserted into their modinfo section, which contains a 879 field inserted into their modinfo section, which contains a
@@ -898,11 +885,12 @@ config MODULE_SRCVERSION_ALL
898 885
899config KMOD 886config KMOD
900 def_bool y 887 def_bool y
901 depends on MODULES
902 help 888 help
903 This is being removed soon. These days, CONFIG_MODULES 889 This is being removed soon. These days, CONFIG_MODULES
904 implies CONFIG_KMOD, so use that instead. 890 implies CONFIG_KMOD, so use that instead.
905 891
892endif # MODULES
893
906config STOP_MACHINE 894config STOP_MACHINE
907 bool 895 bool
908 default y 896 default y
diff --git a/init/calibrate.c b/init/calibrate.c
index 7963e3fc51d9..a379c9061199 100644
--- a/init/calibrate.c
+++ b/init/calibrate.c
@@ -170,7 +170,7 @@ void __cpuinit calibrate_delay(void)
170 loops_per_jiffy &= ~loopbit; 170 loops_per_jiffy &= ~loopbit;
171 } 171 }
172 } 172 }
173 printk(KERN_INFO "%lu.%02lu BogoMIPS (lpj=%lu)\n", 173 printk(KERN_CONT "%lu.%02lu BogoMIPS (lpj=%lu)\n",
174 loops_per_jiffy/(500000/HZ), 174 loops_per_jiffy/(500000/HZ),
175 (loops_per_jiffy/(5000/HZ)) % 100, loops_per_jiffy); 175 (loops_per_jiffy/(5000/HZ)) % 100, loops_per_jiffy);
176} 176}
diff --git a/init/main.c b/init/main.c
index 20fdc9884b77..f6f7042331dc 100644
--- a/init/main.c
+++ b/init/main.c
@@ -22,7 +22,6 @@
22#include <linux/init.h> 22#include <linux/init.h>
23#include <linux/smp_lock.h> 23#include <linux/smp_lock.h>
24#include <linux/initrd.h> 24#include <linux/initrd.h>
25#include <linux/hdreg.h>
26#include <linux/bootmem.h> 25#include <linux/bootmem.h>
27#include <linux/tty.h> 26#include <linux/tty.h>
28#include <linux/gfp.h> 27#include <linux/gfp.h>
@@ -635,10 +634,11 @@ asmlinkage void __init start_kernel(void)
635 634
636#ifdef CONFIG_BLK_DEV_INITRD 635#ifdef CONFIG_BLK_DEV_INITRD
637 if (initrd_start && !initrd_below_start_ok && 636 if (initrd_start && !initrd_below_start_ok &&
638 page_to_pfn(virt_to_page(initrd_start)) < min_low_pfn) { 637 page_to_pfn(virt_to_page((void *)initrd_start)) < min_low_pfn) {
639 printk(KERN_CRIT "initrd overwritten (0x%08lx < 0x%08lx) - " 638 printk(KERN_CRIT "initrd overwritten (0x%08lx < 0x%08lx) - "
640 "disabling it.\n", 639 "disabling it.\n",
641 page_to_pfn(virt_to_page(initrd_start)), min_low_pfn); 640 page_to_pfn(virt_to_page((void *)initrd_start)),
641 min_low_pfn);
642 initrd_start = 0; 642 initrd_start = 0;
643 } 643 }
644#endif 644#endif
@@ -691,7 +691,7 @@ asmlinkage void __init start_kernel(void)
691 rest_init(); 691 rest_init();
692} 692}
693 693
694static int __initdata initcall_debug; 694static int initcall_debug;
695 695
696static int __init initcall_debug_setup(char *str) 696static int __init initcall_debug_setup(char *str)
697{ 697{
@@ -700,7 +700,7 @@ static int __init initcall_debug_setup(char *str)
700} 700}
701__setup("initcall_debug", initcall_debug_setup); 701__setup("initcall_debug", initcall_debug_setup);
702 702
703static void __init do_one_initcall(initcall_t fn) 703int do_one_initcall(initcall_t fn)
704{ 704{
705 int count = preempt_count(); 705 int count = preempt_count();
706 ktime_t t0, t1, delta; 706 ktime_t t0, t1, delta;
@@ -740,6 +740,8 @@ static void __init do_one_initcall(initcall_t fn)
740 print_fn_descriptor_symbol(KERN_WARNING "initcall %s", fn); 740 print_fn_descriptor_symbol(KERN_WARNING "initcall %s", fn);
741 printk(" returned with %s\n", msgbuf); 741 printk(" returned with %s\n", msgbuf);
742 } 742 }
743
744 return result;
743} 745}
744 746
745 747