git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DSS2: OMAP2/3 Display Subsystem driver
[pandora-kernel.git]
/
kernel
/
rtmutex.c
diff --git
a/kernel/rtmutex.c
b/kernel/rtmutex.c
index
0deef71
..
6522ae5
100644
(file)
--- a/
kernel/rtmutex.c
+++ b/
kernel/rtmutex.c
@@
-630,9
+630,12
@@
rt_mutex_slowlock(struct rt_mutex *lock, int state,
set_current_state(state);
/* Setup the timer, when timeout != NULL */
set_current_state(state);
/* Setup the timer, when timeout != NULL */
- if (unlikely(timeout))
+ if (unlikely(timeout))
{
hrtimer_start(&timeout->timer, timeout->timer.expires,
HRTIMER_MODE_ABS);
hrtimer_start(&timeout->timer, timeout->timer.expires,
HRTIMER_MODE_ABS);
+ if (!hrtimer_active(&timeout->timer))
+ timeout->task = NULL;
+ }
for (;;) {
/* Try to acquire the lock: */
for (;;) {
/* Try to acquire the lock: */