From: Mike Galbraith Date: Thu, 13 Jan 2011 03:54:50 +0000 (+0100) Subject: sched, autogroup: Fix CONFIG_RT_GROUP_SCHED sched_setscheduler() failure X-Git-Tag: v2.6.38-rc2~21^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f44937718ce3b8360f72f6c68c9481712517a867;p=pandora-kernel.git sched, autogroup: Fix CONFIG_RT_GROUP_SCHED sched_setscheduler() failure If CONFIG_RT_GROUP_SCHED is set, __sched_setscheduler() fails due to autogroup not allocating rt_runtime. Free unused/unusable rt_se and rt_rq, redirect RT tasks to the root task group, and tell __sched_setscheduler() that it's ok. Reported-and-tested-by: Bharata B Rao Signed-off-by: Mike Galbraith Signed-off-by: Peter Zijlstra LKML-Reference: <1294890890.8089.39.camel@marge.simson.net> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed