]> git.baikalelectronics.ru Git - kernel.git/commit
mqueue: Convert message queue timeout to use hrtimers
authorCarsten Emde <C.Emde@osadl.org>
Fri, 2 Apr 2010 20:40:20 +0000 (22:40 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 6 Apr 2010 19:50:03 +0000 (21:50 +0200)
commite2e35b01806a7641fec5d71e11b3338c561725a7
tree27c0e93e23c25a30aec38c1f79cfa3d194681d24
parent697037ce63e35f04034b87c711d01a79e6c0b858
mqueue: Convert message queue timeout to use hrtimers

The message queue functions mq_timedsend() and mq_timedreceive()
have not yet been converted to use the hrtimer interface.

This patch replaces the call to schedule_timeout() by a call to
schedule_hrtimeout() and transforms the expiration time from
timespec to ktime as required.

[ tglx: Fixed whitespace wreckage ]

Signed-off-by: Carsten Emde <C.Emde@osadl.org>
Tested-by: Pradyumna Sampath <pradysam@gmail.com>
Cc: Arjan van de Veen <arjan@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
LKML-Reference: <20100402204331.715783034@osadl.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
ipc/mqueue.c