aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init/Kconfig16
-rw-r--r--init/do_mounts.c1
-rw-r--r--init/do_mounts.h1
-rw-r--r--init/do_mounts_md.c5
-rw-r--r--init/initramfs.c7
-rw-r--r--init/main.c6
6 files changed, 26 insertions, 10 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 99eb4196bd0a..90e884bb5216 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -531,7 +531,7 @@ config CGROUP_DEVICE
531 531
532config CPUSETS 532config CPUSETS
533 bool "Cpuset support" 533 bool "Cpuset support"
534 depends on SMP && CGROUPS 534 depends on CGROUPS
535 help 535 help
536 This option will let you create and manage CPUSETs which 536 This option will let you create and manage CPUSETs which
537 allow dynamically partitioning a system into sets of CPUs and 537 allow dynamically partitioning a system into sets of CPUs and
@@ -597,6 +597,8 @@ config CGROUP_MEM_RES_CTLR_SWAP
597 is disabled by boot option, this will be automatically disabled and 597 is disabled by boot option, this will be automatically disabled and
598 there will be no overhead from this. Even when you set this config=y, 598 there will be no overhead from this. Even when you set this config=y,
599 if boot option "noswapaccount" is set, swap will not be accounted. 599 if boot option "noswapaccount" is set, swap will not be accounted.
600 Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
601 size is 4096bytes, 512k per 1Gbytes of swap.
600 602
601endif # CGROUPS 603endif # CGROUPS
602 604
@@ -1012,6 +1014,18 @@ config MARKERS
1012 1014
1013source "arch/Kconfig" 1015source "arch/Kconfig"
1014 1016
1017config SLOW_WORK
1018 default n
1019 bool "Enable slow work thread pool"
1020 help
1021 The slow work thread pool provides a number of dynamically allocated
1022 threads that can be used by the kernel to perform operations that
1023 take a relatively long time.
1024
1025 An example of this would be CacheFiles doing a path lookup followed
1026 by a series of mkdirs and a create call, all of which have to touch
1027 disk.
1028
1015endmenu # General setup 1029endmenu # General setup
1016 1030
1017config HAVE_GENERIC_DMA_COHERENT 1031config HAVE_GENERIC_DMA_COHERENT
diff --git a/init/do_mounts.c b/init/do_mounts.c
index 8d4ff5afc1d8..dd7ee5f203f3 100644
--- a/init/do_mounts.c
+++ b/init/do_mounts.c
@@ -14,6 +14,7 @@
14#include <linux/fs.h> 14#include <linux/fs.h>
15#include <linux/initrd.h> 15#include <linux/initrd.h>
16#include <linux/async.h> 16#include <linux/async.h>
17#include <linux/fs_struct.h>
17 18
18#include <linux/nfs_fs.h> 19#include <linux/nfs_fs.h>
19#include <linux/nfs_fs_sb.h> 20#include <linux/nfs_fs_sb.h>
diff --git a/init/do_mounts.h b/init/do_mounts.h
index 9aa968d54329..f5b978a9bb92 100644
--- a/init/do_mounts.h
+++ b/init/do_mounts.h
@@ -1,4 +1,5 @@
1#include <linux/kernel.h> 1#include <linux/kernel.h>
2#include <linux/blkdev.h>
2#include <linux/init.h> 3#include <linux/init.h>
3#include <linux/syscalls.h> 4#include <linux/syscalls.h>
4#include <linux/unistd.h> 5#include <linux/unistd.h>
diff --git a/init/do_mounts_md.c b/init/do_mounts_md.c
index 9bdddbcb3d6a..69aebbf8fd2d 100644
--- a/init/do_mounts_md.c
+++ b/init/do_mounts_md.c
@@ -1,5 +1,6 @@
1#include <linux/delay.h> 1#include <linux/delay.h>
2#include <linux/raid/md.h> 2#include <linux/raid/md_u.h>
3#include <linux/raid/md_p.h>
3 4
4#include "do_mounts.h" 5#include "do_mounts.h"
5 6
@@ -112,8 +113,6 @@ static int __init md_setup(char *str)
112 return 1; 113 return 1;
113} 114}
114 115
115#define MdpMinorShift 6
116
117static void __init md_setup_drive(void) 116static void __init md_setup_drive(void)
118{ 117{
119 int minor, i, ent, partitioned; 118 int minor, i, ent, partitioned;
diff --git a/init/initramfs.c b/init/initramfs.c
index 619c1baf7701..80cd713f6cc5 100644
--- a/init/initramfs.c
+++ b/init/initramfs.c
@@ -571,11 +571,11 @@ static int __init populate_rootfs(void)
571 if (initrd_start) { 571 if (initrd_start) {
572#ifdef CONFIG_BLK_DEV_RAM 572#ifdef CONFIG_BLK_DEV_RAM
573 int fd; 573 int fd;
574 printk(KERN_INFO "checking if image is initramfs..."); 574 printk(KERN_INFO "checking if image is initramfs...\n");
575 err = unpack_to_rootfs((char *)initrd_start, 575 err = unpack_to_rootfs((char *)initrd_start,
576 initrd_end - initrd_start); 576 initrd_end - initrd_start);
577 if (!err) { 577 if (!err) {
578 printk(" it is\n"); 578 printk(KERN_INFO "rootfs image is initramfs; unpacking...\n");
579 free_initrd(); 579 free_initrd();
580 return 0; 580 return 0;
581 } else { 581 } else {
@@ -583,7 +583,8 @@ static int __init populate_rootfs(void)
583 unpack_to_rootfs(__initramfs_start, 583 unpack_to_rootfs(__initramfs_start,
584 __initramfs_end - __initramfs_start); 584 __initramfs_end - __initramfs_start);
585 } 585 }
586 printk("it isn't (%s); looks like an initrd\n", err); 586 printk(KERN_INFO "rootfs image is not initramfs (%s)"
587 "; looks like an initrd\n", err);
587 fd = sys_open("/initrd.image", O_WRONLY|O_CREAT, 0700); 588 fd = sys_open("/initrd.image", O_WRONLY|O_CREAT, 0700);
588 if (fd >= 0) { 589 if (fd >= 0) {
589 sys_write(fd, (char *)initrd_start, 590 sys_write(fd, (char *)initrd_start,
diff --git a/init/main.c b/init/main.c
index 6bf83afd654d..07c8658ffca5 100644
--- a/init/main.c
+++ b/init/main.c
@@ -407,8 +407,7 @@ static void __init smp_init(void)
407 * Set up the current CPU as possible to migrate to. 407 * Set up the current CPU as possible to migrate to.
408 * The other ones will be done by cpu_up/cpu_down() 408 * The other ones will be done by cpu_up/cpu_down()
409 */ 409 */
410 cpu = smp_processor_id(); 410 set_cpu_active(smp_processor_id(), true);
411 cpu_set(cpu, cpu_active_map);
412 411
413 /* FIXME: This should be done in userspace --RR */ 412 /* FIXME: This should be done in userspace --RR */
414 for_each_present_cpu(cpu) { 413 for_each_present_cpu(cpu) {
@@ -794,6 +793,7 @@ static void run_init_process(char *init_filename)
794 * makes it inline to init() and it becomes part of init.text section 793 * makes it inline to init() and it becomes part of init.text section
795 */ 794 */
796static noinline int init_post(void) 795static noinline int init_post(void)
796 __releases(kernel_lock)
797{ 797{
798 /* need to finish all async __init code before freeing the memory */ 798 /* need to finish all async __init code before freeing the memory */
799 async_synchronize_full(); 799 async_synchronize_full();
@@ -842,7 +842,7 @@ static int __init kernel_init(void * unused)
842 /* 842 /*
843 * init can run on any cpu. 843 * init can run on any cpu.
844 */ 844 */
845 set_cpus_allowed_ptr(current, CPU_MASK_ALL_PTR); 845 set_cpus_allowed_ptr(current, cpu_all_mask);
846 /* 846 /*
847 * Tell the world that we're going to be the grim 847 * Tell the world that we're going to be the grim
848 * reaper of innocent orphaned children. 848 * reaper of innocent orphaned children.