diff options
Diffstat (limited to 'init')
-rw-r--r-- | init/Kconfig | 13 | ||||
-rw-r--r-- | init/main.c | 7 |
2 files changed, 18 insertions, 2 deletions
diff --git a/init/Kconfig b/init/Kconfig index f70f2fd273c2..a5b073a103e7 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -54,8 +54,8 @@ config LOCK_KERNEL | |||
54 | 54 | ||
55 | config INIT_ENV_ARG_LIMIT | 55 | config INIT_ENV_ARG_LIMIT |
56 | int | 56 | int |
57 | default 32 if !USERMODE | 57 | default 32 if !UML |
58 | default 128 if USERMODE | 58 | default 128 if UML |
59 | help | 59 | help |
60 | Maximum of each of the number of arguments and environment | 60 | Maximum of each of the number of arguments and environment |
61 | variables passed to init from the kernel command line. | 61 | variables passed to init from the kernel command line. |
@@ -379,6 +379,15 @@ config SLAB | |||
379 | SLOB is more space efficient but does not scale well and is | 379 | SLOB is more space efficient but does not scale well and is |
380 | more susceptible to fragmentation. | 380 | more susceptible to fragmentation. |
381 | 381 | ||
382 | config VM_EVENT_COUNTERS | ||
383 | default y | ||
384 | bool "Enable VM event counters for /proc/vmstat" if EMBEDDED | ||
385 | help | ||
386 | VM event counters are only needed to for event counts to be | ||
387 | shown. They have no function for the kernel itself. This | ||
388 | option allows the disabling of the VM event counters. | ||
389 | /proc/vmstat will only show page counts. | ||
390 | |||
382 | endmenu # General setup | 391 | endmenu # General setup |
383 | 392 | ||
384 | config TINY_SHMEM | 393 | config TINY_SHMEM |
diff --git a/init/main.c b/init/main.c index edff815744eb..b2f3b566790e 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -445,10 +445,17 @@ static void __init boot_cpu_init(void) | |||
445 | cpu_set(cpu, cpu_possible_map); | 445 | cpu_set(cpu, cpu_possible_map); |
446 | } | 446 | } |
447 | 447 | ||
448 | void __init __attribute__((weak)) smp_setup_processor_id(void) | ||
449 | { | ||
450 | } | ||
451 | |||
448 | asmlinkage void __init start_kernel(void) | 452 | asmlinkage void __init start_kernel(void) |
449 | { | 453 | { |
450 | char * command_line; | 454 | char * command_line; |
451 | extern struct kernel_param __start___param[], __stop___param[]; | 455 | extern struct kernel_param __start___param[], __stop___param[]; |
456 | |||
457 | smp_setup_processor_id(); | ||
458 | |||
452 | /* | 459 | /* |
453 | * Interrupts are still disabled. Do necessary setups, then | 460 | * Interrupts are still disabled. Do necessary setups, then |
454 | * enable them | 461 | * enable them |