diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2006-06-27 05:54:56 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-27 20:32:47 -0400 |
commit | 61a87122869b6340a63b6f9f84097d3688604b90 (patch) | |
tree | 11d60d29763a42abd66453a920cc06bebc852427 /kernel/rtmutex.c | |
parent | e7eebaf6a81b956c989f184ee4b27277c88f8afe (diff) |
[PATCH] pi-futex: rt mutex tester
RT-mutex tester: scriptable tester for rt mutexes, which allows userspace
scripting of mutex unit-tests (and dynamic tests as well), using the actual
rt-mutex implementation of the kernel.
[akpm@osdl.org: fixlet]
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/rtmutex.c')
-rw-r--r-- | kernel/rtmutex.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/rtmutex.c b/kernel/rtmutex.c index 937a474fae94..39c8ca0cf526 100644 --- a/kernel/rtmutex.c +++ b/kernel/rtmutex.c | |||
@@ -640,7 +640,8 @@ rt_mutex_slowlock(struct rt_mutex *lock, int state, | |||
640 | 640 | ||
641 | debug_rt_mutex_print_deadlock(&waiter); | 641 | debug_rt_mutex_print_deadlock(&waiter); |
642 | 642 | ||
643 | schedule(); | 643 | if (waiter.task) |
644 | schedule_rt_mutex(lock); | ||
644 | 645 | ||
645 | spin_lock(&lock->wait_lock); | 646 | spin_lock(&lock->wait_lock); |
646 | set_current_state(state); | 647 | set_current_state(state); |