[PATCH] ipc:fix the wrong use of schedule_hrtimeout_range_clock()

From: Wanlong Gao
Date: Thu Sep 22 2011 - 02:36:36 EST


Fix the wrong use of schedule_hrtimeout_range_clock() in wq_sleep(), although
it is harmless for the syscall mq_timed* now.
It's introduced by 9ca7d8e.

Signed-off-by: Wanlong Gao <gaowanlong@xxxxxxxxxxxxxx>
---
ipc/mqueue.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ipc/mqueue.c b/ipc/mqueue.c
index ed049ea..2e0ecfc 100644
--- 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();
--
1.7.7.rc1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/