diff options
Diffstat (limited to 'init')
-rw-r--r-- | init/Kconfig | 15 | ||||
-rw-r--r-- | init/calibrate.c | 2 | ||||
-rw-r--r-- | init/main.c | 6 |
3 files changed, 13 insertions, 10 deletions
diff --git a/init/Kconfig b/init/Kconfig index 43d6989c275f..b678803deccf 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 | ||
527 | config SYSCTL | 527 | config SYSCTL |
528 | bool | 528 | bool |
@@ -802,6 +802,10 @@ config PROC_PAGE_MONITOR | |||
802 | 802 | ||
803 | endmenu # General setup | 803 | endmenu # General setup |
804 | 804 | ||
805 | config HAVE_GENERIC_DMA_COHERENT | ||
806 | bool | ||
807 | default n | ||
808 | |||
805 | config SLABINFO | 809 | config SLABINFO |
806 | bool | 810 | bool |
807 | depends on PROC_FS | 811 | depends on PROC_FS |
@@ -841,9 +845,10 @@ menuconfig MODULES | |||
841 | 845 | ||
842 | If unsure, say Y. | 846 | If unsure, say Y. |
843 | 847 | ||
848 | if MODULES | ||
849 | |||
844 | config MODULE_FORCE_LOAD | 850 | config MODULE_FORCE_LOAD |
845 | bool "Forced module loading" | 851 | bool "Forced module loading" |
846 | depends on MODULES | ||
847 | default n | 852 | default n |
848 | help | 853 | help |
849 | Allow loading of modules without version information (ie. modprobe | 854 | Allow loading of modules without version information (ie. modprobe |
@@ -852,7 +857,6 @@ config MODULE_FORCE_LOAD | |||
852 | 857 | ||
853 | config MODULE_UNLOAD | 858 | config MODULE_UNLOAD |
854 | bool "Module unloading" | 859 | bool "Module unloading" |
855 | depends on MODULES | ||
856 | help | 860 | help |
857 | Without this option you will not be able to unload any | 861 | Without this option you will not be able to unload any |
858 | modules (note that some modules may not be unloadable | 862 | modules (note that some modules may not be unloadable |
@@ -871,7 +875,6 @@ config MODULE_FORCE_UNLOAD | |||
871 | 875 | ||
872 | config MODVERSIONS | 876 | config MODVERSIONS |
873 | bool "Module versioning support" | 877 | bool "Module versioning support" |
874 | depends on MODULES | ||
875 | help | 878 | help |
876 | Usually, you have to use modules compiled with your kernel. | 879 | Usually, you have to use modules compiled with your kernel. |
877 | Saying Y here makes it sometimes possible to use modules | 880 | Saying Y here makes it sometimes possible to use modules |
@@ -882,7 +885,6 @@ config MODVERSIONS | |||
882 | 885 | ||
883 | config MODULE_SRCVERSION_ALL | 886 | config MODULE_SRCVERSION_ALL |
884 | bool "Source checksum for all modules" | 887 | bool "Source checksum for all modules" |
885 | depends on MODULES | ||
886 | help | 888 | help |
887 | Modules which contain a MODULE_VERSION get an extra "srcversion" | 889 | Modules which contain a MODULE_VERSION get an extra "srcversion" |
888 | field inserted into their modinfo section, which contains a | 890 | field inserted into their modinfo section, which contains a |
@@ -894,11 +896,12 @@ config MODULE_SRCVERSION_ALL | |||
894 | 896 | ||
895 | config KMOD | 897 | config KMOD |
896 | def_bool y | 898 | def_bool y |
897 | depends on MODULES | ||
898 | help | 899 | help |
899 | This is being removed soon. These days, CONFIG_MODULES | 900 | This is being removed soon. These days, CONFIG_MODULES |
900 | implies CONFIG_KMOD, so use that instead. | 901 | implies CONFIG_KMOD, so use that instead. |
901 | 902 | ||
903 | endif # MODULES | ||
904 | |||
902 | config STOP_MACHINE | 905 | config STOP_MACHINE |
903 | bool | 906 | bool |
904 | default y | 907 | 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..0bc7e167bf45 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 |