diff mbox

[RFC,-v6,5/8] sched: drop superfluous tests from yield_to

Message ID 20110120163722.476accf5@annuminas.surriel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Rik van Riel Jan. 20, 2011, 9:37 p.m. UTC
None
diff mbox

Patch

diff --git a/kernel/sched.c b/kernel/sched.c
index 1f38ed2..398eedf 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -5307,14 +5307,6 @@  again:
 	if (task_running(p_rq, p) || p->state)
 		goto out;
 
-	if (!same_thread_group(p, curr))
-		goto out;
-
-#ifdef CONFIG_FAIR_GROUP_SCHED
-	if (task_group(p) != task_group(curr))
-		goto out;
-#endif
-
 	yielded = curr->sched_class->yield_to_task(rq, p, preempt);
 
 out: