lkml.org 
[lkml]   [2011]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [patch] Re: autogroup: sched_setscheduler() fails
From
Date
On Mon, 2011-01-10 at 11:29 +0100, Mike Galbraith wrote:
>
> Right, autogroup should be excluding CONFIG_RT_GROUP_SCHED, since it
> doesn't currently support it.
>
> sched: SCHED_AUTOGROUP selection excludes RT_GROUP_SCHED
>
> Autogroup does not support realtime task groups, so make selection of
> SCHED_AUTOGROUP exclude RT_GROUP_SCHED.
>
> Signed-off-by: Mike Galbraith <efault@gmx.de>
> Reported-by:Bharata B Rao <bharata@linux.vnet.ibm.com>
>
> ---
> init/Kconfig | 5 +++++
> 1 file changed, 5 insertions(+)
>
> Index: linux-2.6/init/Kconfig
> ===================================================================
> --- linux-2.6.orig/init/Kconfig
> +++ linux-2.6/init/Kconfig
> @@ -699,6 +699,7 @@ config RT_GROUP_SCHED
> bool "Group scheduling for SCHED_RR/FIFO"
> depends on EXPERIMENTAL
> depends on CGROUP_SCHED
> + depends on !SCHED_AUTOGROUP
> default n
> help
> This feature lets you explicitly allocate real CPU bandwidth
> @@ -807,6 +808,10 @@ config SCHED_AUTOGROUP
> desktop applications. Task group autogeneration is currently based
> upon task session.
>
> + Note: SCHED_AUTOGROUP does not support realtime tasks, and prevents
> + enabling RT_GROUP_SCHED. If you intend to use group scheduling for
> + realtime tasks, do not enable this option.
> +
> config MM_OWNER
> bool
>

Uhm, no. The right way is to put tasks back into the root group and then
perform sched_setscheduler().


\
 
 \ /
  Last update: 2011-01-10 12:01    [W:0.061 / U:0.660 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site