diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-02-28 13:31:01 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-02-28 13:31:01 -0500 |
commit | f66ffdedbf0fc059a92219bb08c1dbcac88f074b (patch) | |
tree | 9db4ad51764455123130e82fb7acf4f0a0be58ce /init | |
parent | 2531216f236cb2a1f39ffa12a4a9339541e52191 (diff) | |
parent | dd5feea14a7de4edbd9f36db1a2db785de91b88d (diff) |
Merge branch 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (25 commits)
sched: Fix SCHED_MC regression caused by change in sched cpu_power
sched: Don't use possibly stale sched_class
kthread, sched: Remove reference to kthread_create_on_cpu
sched: cpuacct: Use bigger percpu counter batch values for stats counters
percpu_counter: Make __percpu_counter_add an inline function on UP
sched: Remove member rt_se from struct rt_rq
sched: Change usage of rt_rq->rt_se to rt_rq->tg->rt_se[cpu]
sched: Remove unused update_shares_locked()
sched: Use for_each_bit
sched: Queue a deboosted task to the head of the RT prio queue
sched: Implement head queueing for sched_rt
sched: Extend enqueue_task to allow head queueing
sched: Remove USER_SCHED
sched: Fix the place where group powers are updated
sched: Assume *balance is valid
sched: Remove load_balance_newidle()
sched: Unify load_balance{,_newidle}()
sched: Add a lock break for PREEMPT=y
sched: Remove from fwd decls
sched: Remove rq_iterator from move_one_task
...
Fix up trivial conflicts in kernel/sched.c
Diffstat (limited to 'init')
-rw-r--r-- | init/Kconfig | 81 |
1 files changed, 30 insertions, 51 deletions
diff --git a/init/Kconfig b/init/Kconfig index c6d95f8ea055..089a230e5652 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -461,57 +461,6 @@ config LOG_BUF_SHIFT | |||
461 | config HAVE_UNSTABLE_SCHED_CLOCK | 461 | config HAVE_UNSTABLE_SCHED_CLOCK |
462 | bool | 462 | bool |
463 | 463 | ||
464 | config GROUP_SCHED | ||
465 | bool "Group CPU scheduler" | ||
466 | depends on EXPERIMENTAL | ||
467 | default n | ||
468 | help | ||
469 | This feature lets CPU scheduler recognize task groups and control CPU | ||
470 | bandwidth allocation to such task groups. | ||
471 | In order to create a group from arbitrary set of processes, use | ||
472 | CONFIG_CGROUPS. (See Control Group support.) | ||
473 | |||
474 | config FAIR_GROUP_SCHED | ||
475 | bool "Group scheduling for SCHED_OTHER" | ||
476 | depends on GROUP_SCHED | ||
477 | default GROUP_SCHED | ||
478 | |||
479 | config RT_GROUP_SCHED | ||
480 | bool "Group scheduling for SCHED_RR/FIFO" | ||
481 | depends on EXPERIMENTAL | ||
482 | depends on GROUP_SCHED | ||
483 | default n | ||
484 | help | ||
485 | This feature lets you explicitly allocate real CPU bandwidth | ||
486 | to users or control groups (depending on the "Basis for grouping tasks" | ||
487 | setting below. If enabled, it will also make it impossible to | ||
488 | schedule realtime tasks for non-root users until you allocate | ||
489 | realtime bandwidth for them. | ||
490 | See Documentation/scheduler/sched-rt-group.txt for more information. | ||
491 | |||
492 | choice | ||
493 | depends on GROUP_SCHED | ||
494 | prompt "Basis for grouping tasks" | ||
495 | default USER_SCHED | ||
496 | |||
497 | config USER_SCHED | ||
498 | bool "user id" | ||
499 | help | ||
500 | This option will choose userid as the basis for grouping | ||
501 | tasks, thus providing equal CPU bandwidth to each user. | ||
502 | |||
503 | config CGROUP_SCHED | ||
504 | bool "Control groups" | ||
505 | depends on CGROUPS | ||
506 | help | ||
507 | This option allows you to create arbitrary task groups | ||
508 | using the "cgroup" pseudo filesystem and control | ||
509 | the cpu bandwidth allocated to each such task group. | ||
510 | Refer to Documentation/cgroups/cgroups.txt for more | ||
511 | information on "cgroup" pseudo filesystem. | ||
512 | |||
513 | endchoice | ||
514 | |||
515 | menuconfig CGROUPS | 464 | menuconfig CGROUPS |
516 | boolean "Control Group support" | 465 | boolean "Control Group support" |
517 | help | 466 | help |
@@ -632,6 +581,36 @@ config CGROUP_MEM_RES_CTLR_SWAP | |||
632 | Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page | 581 | Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page |
633 | size is 4096bytes, 512k per 1Gbytes of swap. | 582 | size is 4096bytes, 512k per 1Gbytes of swap. |
634 | 583 | ||
584 | menuconfig CGROUP_SCHED | ||
585 | bool "Group CPU scheduler" | ||
586 | depends on EXPERIMENTAL && CGROUPS | ||
587 | default n | ||
588 | help | ||
589 | This feature lets CPU scheduler recognize task groups and control CPU | ||
590 | bandwidth allocation to such task groups. It uses cgroups to group | ||
591 | tasks. | ||
592 | |||
593 | if CGROUP_SCHED | ||
594 | config FAIR_GROUP_SCHED | ||
595 | bool "Group scheduling for SCHED_OTHER" | ||
596 | depends on CGROUP_SCHED | ||
597 | default CGROUP_SCHED | ||
598 | |||
599 | config RT_GROUP_SCHED | ||
600 | bool "Group scheduling for SCHED_RR/FIFO" | ||
601 | depends on EXPERIMENTAL | ||
602 | depends on CGROUP_SCHED | ||
603 | default n | ||
604 | help | ||
605 | This feature lets you explicitly allocate real CPU bandwidth | ||
606 | to users or control groups (depending on the "Basis for grouping tasks" | ||
607 | setting below. If enabled, it will also make it impossible to | ||
608 | schedule realtime tasks for non-root users until you allocate | ||
609 | realtime bandwidth for them. | ||
610 | See Documentation/scheduler/sched-rt-group.txt for more information. | ||
611 | |||
612 | endif #CGROUP_SCHED | ||
613 | |||
635 | endif # CGROUPS | 614 | endif # CGROUPS |
636 | 615 | ||
637 | config MM_OWNER | 616 | config MM_OWNER |