lkml.org 
[lkml]   [2011]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[RFC -v6 PATCH 5/8] sched: drop superfluous tests from yield_to
Fairness is enforced by pick_next_entity, so we can drop some
superfluous tests from yield_to.

Signed-off-by: Rik van Riel <riel@redhat.com>
---
kernel/sched.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)

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:

\
 
 \ /
  Last update: 2011-01-20 22:43    [W:0.129 / U:1.964 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site