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 <>
Tested-by: Pradyumna Sampath <>
Cc: Arjan van de Veen <>
Cc: Andrew Morton <>
LKML-Reference: <>
Signed-off-by: Thomas Gleixner <>
1 file changed