hrtimers: Provide schedule_hrtimeout for CLOCK_REALTIME
authorCarsten Emde <C.Emde@osadl.org>
Fri, 2 Apr 2010 20:40:19 +0000 (22:40 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 6 Apr 2010 19:50:03 +0000 (21:50 +0200)
commit351b3f7a21e413a9b14d0393171497d2373bd702
tree8a733b28c37504a0c6d22e64af1e9f7cfc72a40f
parent3bbb9ec946428b96657126768f65487a48dd090c
hrtimers: Provide schedule_hrtimeout for CLOCK_REALTIME

The current version of schedule_hrtimeout() always uses the
monotonic clock. Some system calls such as mq_timedsend()
and mq_timedreceive(), however, require the use of the wall
clock due to the definition of the system call.

This patch provides the infrastructure to use schedule_hrtimeout()
with a CLOCK_REALTIME timer.

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