aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init/Kconfig7
-rw-r--r--init/main.c1
2 files changed, 8 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig
index a3457926342a..98fa96eac415 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -378,9 +378,13 @@ config RESOURCE_COUNTERS
378 infrastructure that works with cgroups 378 infrastructure that works with cgroups
379 depends on CGROUPS 379 depends on CGROUPS
380 380
381config MM_OWNER
382 bool
383
381config CGROUP_MEM_RES_CTLR 384config CGROUP_MEM_RES_CTLR
382 bool "Memory Resource Controller for Control Groups" 385 bool "Memory Resource Controller for Control Groups"
383 depends on CGROUPS && RESOURCE_COUNTERS 386 depends on CGROUPS && RESOURCE_COUNTERS
387 select MM_OWNER
384 help 388 help
385 Provides a memory resource controller that manages both page cache and 389 Provides a memory resource controller that manages both page cache and
386 RSS memory. 390 RSS memory.
@@ -393,6 +397,9 @@ config CGROUP_MEM_RES_CTLR
393 Only enable when you're ok with these trade offs and really 397 Only enable when you're ok with these trade offs and really
394 sure you need the memory resource controller. 398 sure you need the memory resource controller.
395 399
400 This config option also selects MM_OWNER config option, which
401 could in turn add some fork/exit overhead.
402
396config SYSFS_DEPRECATED 403config SYSFS_DEPRECATED
397 bool 404 bool
398 405
diff --git a/init/main.c b/init/main.c
index 1116d2f40cc1..c62c98f381f2 100644
--- a/init/main.c
+++ b/init/main.c
@@ -559,6 +559,7 @@ asmlinkage void __init start_kernel(void)
559 printk(KERN_NOTICE); 559 printk(KERN_NOTICE);
560 printk(linux_banner); 560 printk(linux_banner);
561 setup_arch(&command_line); 561 setup_arch(&command_line);
562 mm_init_owner(&init_mm, &init_task);
562 setup_command_line(command_line); 563 setup_command_line(command_line);
563 unwind_setup(); 564 unwind_setup();
564 setup_per_cpu_areas(); 565 setup_per_cpu_areas();