X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=kernel%2Fsched_autogroup.c;h=cb0a950681f67f8dbf945db4ec854c3dc5c17145;hp=429242f3c48485f35f2173aa3ea0cd8f8baac9a8;hb=4cecd7e369e1b252db1d64451462221b362eed1c;hpb=b7c2f036284452627d793af981877817b37d4351 diff --git a/kernel/sched_autogroup.c b/kernel/sched_autogroup.c index 429242f3c484..cb0a950681f6 100644 --- a/kernel/sched_autogroup.c +++ b/kernel/sched_autogroup.c @@ -86,8 +86,7 @@ static inline struct autogroup *autogroup_create(void) * so we don't have to move tasks around upon policy change, * or flail around trying to allocate bandwidth on the fly. * A bandwidth exception in __sched_setscheduler() allows - * the policy change to proceed. Thereafter, task_group() - * returns &root_task_group, so zero bandwidth is required. + * the policy change to proceed. */ free_rt_sched_group(tg); tg->rt_se = root_task_group.rt_se; @@ -114,9 +113,6 @@ task_wants_autogroup(struct task_struct *p, struct task_group *tg) if (tg != &root_task_group) return false; - if (p->sched_class != &fair_sched_class) - return false; - /* * We can only assume the task group can't go away on us if * autogroup_move_group() can see us on ->thread_group list. @@ -160,15 +156,11 @@ autogroup_move_group(struct task_struct *p, struct autogroup *ag) p->signal->autogroup = autogroup_kref_get(ag); - if (!ACCESS_ONCE(sysctl_sched_autogroup_enabled)) - goto out; - t = p; do { sched_move_task(t); } while_each_thread(p, t); -out: unlock_task_sighand(p, &flags); autogroup_kref_put(prev); }