Skip to content

Commit

Permalink
ipc/mqueue.c: fix wrong use of schedule_hrtimeout_range_clock()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
gaowanlong authored and torvalds committed Nov 1, 2011
1 parent fc360bd commit 32ea845
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ipc/mqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 32ea845

Please sign in to comment.