aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init/Kconfig10
-rw-r--r--init/Makefile1
-rw-r--r--init/main.c17
-rw-r--r--init/version.c10
4 files changed, 22 insertions, 16 deletions
diff --git a/init/Kconfig b/init/Kconfig
index f000edb3bb7a..a3f83e2c8250 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -450,7 +450,7 @@ config SHMEM
450 450
451config SLAB 451config SLAB
452 default y 452 default y
453 bool "Use full SLAB allocator" if EMBEDDED 453 bool "Use full SLAB allocator" if (EMBEDDED && !SMP && !SPARSEMEM)
454 help 454 help
455 Disabling this replaces the advanced SLAB allocator and 455 Disabling this replaces the advanced SLAB allocator and
456 kmalloc support with the drastically simpler SLOB allocator. 456 kmalloc support with the drastically simpler SLOB allocator.
@@ -461,10 +461,10 @@ config VM_EVENT_COUNTERS
461 default y 461 default y
462 bool "Enable VM event counters for /proc/vmstat" if EMBEDDED 462 bool "Enable VM event counters for /proc/vmstat" if EMBEDDED
463 help 463 help
464 VM event counters are only needed to for event counts to be 464 VM event counters are needed for event counts to be shown.
465 shown. They have no function for the kernel itself. This 465 This option allows the disabling of the VM event counters
466 option allows the disabling of the VM event counters. 466 on EMBEDDED systems. /proc/vmstat will only show page counts
467 /proc/vmstat will only show page counts. 467 if VM event counters are disabled.
468 468
469endmenu # General setup 469endmenu # General setup
470 470
diff --git a/init/Makefile b/init/Makefile
index d6c764d0eabb..633a268d270d 100644
--- a/init/Makefile
+++ b/init/Makefile
@@ -15,7 +15,6 @@ clean-files := ../include/linux/compile.h
15 15
16# dependencies on generated files need to be listed explicitly 16# dependencies on generated files need to be listed explicitly
17 17
18$(obj)/main.o: include/linux/compile.h
19$(obj)/version.o: include/linux/compile.h 18$(obj)/version.o: include/linux/compile.h
20 19
21# compile.h changes depending on hostname, generation number, etc, 20# compile.h changes depending on hostname, generation number, etc,
diff --git a/init/main.c b/init/main.c
index e3f0bb20b4dd..8b4a7d769162 100644
--- a/init/main.c
+++ b/init/main.c
@@ -50,9 +50,8 @@
50#include <linux/buffer_head.h> 50#include <linux/buffer_head.h>
51#include <linux/debug_locks.h> 51#include <linux/debug_locks.h>
52#include <linux/lockdep.h> 52#include <linux/lockdep.h>
53#include <linux/utsrelease.h>
54#include <linux/pid_namespace.h> 53#include <linux/pid_namespace.h>
55#include <linux/compile.h> 54#include <linux/device.h>
56 55
57#include <asm/io.h> 56#include <asm/io.h>
58#include <asm/bugs.h> 57#include <asm/bugs.h>
@@ -94,7 +93,6 @@ extern void pidmap_init(void);
94extern void prio_tree_init(void); 93extern void prio_tree_init(void);
95extern void radix_tree_init(void); 94extern void radix_tree_init(void);
96extern void free_initmem(void); 95extern void free_initmem(void);
97extern void driver_init(void);
98extern void prepare_namespace(void); 96extern void prepare_namespace(void);
99#ifdef CONFIG_ACPI 97#ifdef CONFIG_ACPI
100extern void acpi_early_init(void); 98extern void acpi_early_init(void);
@@ -482,12 +480,6 @@ void __init __attribute__((weak)) smp_setup_processor_id(void)
482{ 480{
483} 481}
484 482
485static const char linux_banner[] =
486 "Linux version " UTS_RELEASE
487 " (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ")"
488 " (" LINUX_COMPILER ")"
489 " " UTS_VERSION "\n";
490
491asmlinkage void __init start_kernel(void) 483asmlinkage void __init start_kernel(void)
492{ 484{
493 char * command_line; 485 char * command_line;
@@ -538,6 +530,11 @@ asmlinkage void __init start_kernel(void)
538 parse_args("Booting kernel", command_line, __start___param, 530 parse_args("Booting kernel", command_line, __start___param,
539 __stop___param - __start___param, 531 __stop___param - __start___param,
540 &unknown_bootoption); 532 &unknown_bootoption);
533 if (!irqs_disabled()) {
534 printk(KERN_WARNING "start_kernel(): bug: interrupts were "
535 "enabled *very* early, fixing it\n");
536 local_irq_disable();
537 }
541 sort_main_extable(); 538 sort_main_extable();
542 trap_init(); 539 trap_init();
543 rcu_init(); 540 rcu_init();
@@ -698,7 +695,7 @@ static void __init do_basic_setup(void)
698 do_initcalls(); 695 do_initcalls();
699} 696}
700 697
701static void do_pre_smp_initcalls(void) 698static void __init do_pre_smp_initcalls(void)
702{ 699{
703 extern int spawn_ksoftirqd(void); 700 extern int spawn_ksoftirqd(void);
704#ifdef CONFIG_SMP 701#ifdef CONFIG_SMP
diff --git a/init/version.c b/init/version.c
index 9d96d36501ca..6c01ec1cc48d 100644
--- a/init/version.c
+++ b/init/version.c
@@ -33,3 +33,13 @@ struct uts_namespace init_uts_ns = {
33 }, 33 },
34}; 34};
35EXPORT_SYMBOL_GPL(init_uts_ns); 35EXPORT_SYMBOL_GPL(init_uts_ns);
36
37/* FIXED STRINGS! Don't touch! */
38const char linux_banner[] =
39 "Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@"
40 LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n";
41
42const char linux_proc_banner[] =
43 "%s version %s"
44 " (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ")"
45 " (" LINUX_COMPILER ") %s\n";