lkml.org 
[lkml]   [2008]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 3/5] rtmutex: use task->oncpu to save a call
Date
Signed-off-by: Gregory Haskins <ghaskins@novell.com>
---

kernel/rtmutex.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/rtmutex.c b/kernel/rtmutex.c
index 8ae9de3..b6ff1eb 100644
--- a/kernel/rtmutex.c
+++ b/kernel/rtmutex.c
@@ -738,7 +738,7 @@ static int adaptive_wait(struct rt_mutex_waiter *waiter,
}

/* Owner went to bed, so should we */
- if (!task_is_current(orig_owner)) {
+ if (!orig_owner->oncpu) {
sleep = 1;
rcu_read_unlock();
break;


\
 
 \ /
  Last update: 2008-05-20 17:25    [W:0.037 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site