projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc360bd
)
ipc/mqueue.c: fix wrong use of schedule_hrtimeout_range_clock()
author
Wanlong Gao
<
[email protected]
>
Tue, 1 Nov 2011 00:06:35 +0000
(17:06 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 1 Nov 2011 00:30:44 +0000
(17:30 -0700)
Fix the wrong use of schedule_hrtimeout_range_clock() in wq_sleep(),
although it is harmless for the syscall mq_timed* now. It was introduced
by
9ca7d8e
("mqueue: Convert message queue timeout to use hrtimers").
Signed-off-by: Wanlong Gao <
[email protected]
>
Cc: Carsten Emde <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Cc: Manfred Spraul <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
ipc/mqueue.c
patch
|
blob
|
history
diff --git
a/ipc/mqueue.c
b/ipc/mqueue.c
index ed049ea568f45ee6026941b5d8335853c33efcd8..2e0ecfcc881dd124e3b2a2d868971fd1e6dea6f8 100644
(file)
--- a/
ipc/mqueue.c
+++ b/
ipc/mqueue.c
@@
-449,8
+449,8
@@
static int wq_sleep(struct mqueue_inode_info *info, int sr,
set_current_state(TASK_INTERRUPTIBLE);
spin_unlock(&info->lock);
- time = schedule_hrtimeout_range_clock(timeout,
-
HRTIMER_MODE_ABS, 0
, CLOCK_REALTIME);
+ time = schedule_hrtimeout_range_clock(timeout,
0,
+
HRTIMER_MODE_ABS
, CLOCK_REALTIME);
while (ewp->state == STATE_PENDING)
cpu_relax();