sched, autogroup: Fix CONFIG_RT_GROUP_SCHED sched_setscheduler() failure
[deliverable/linux.git] / kernel / sched.c
index a0eb0941fa84a1e1b194ac8d4e071aaec82183fb..6cbff6bd1a6049c7a5eda06c4cec31e7736b0a7c 100644 (file)
@@ -4871,7 +4871,8 @@ recheck:
                 * assigned.
                 */
                if (rt_bandwidth_enabled() && rt_policy(policy) &&
-                               task_group(p)->rt_bandwidth.rt_runtime == 0) {
+                               task_group(p)->rt_bandwidth.rt_runtime == 0 &&
+                               !task_group_is_autogroup(task_group(p))) {
                        __task_rq_unlock(rq);
                        raw_spin_unlock_irqrestore(&p->pi_lock, flags);
                        return -EPERM;
This page took 0.025237 seconds and 5 git commands to generate.