summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCarsten Emde <C.Emde@osadl.org>2010-04-02 22:40:19 +0200
committerThomas Gleixner <tglx@linutronix.de>2010-04-07 15:33:20 +0200
commit3c3016f722b1d18ef73676f115cd1287e02f0b61 (patch)
tree9a951f307b298707b92d14e4a048999ef7529cf1 /include
parentd980cb7b0412055e7a8b561bf111284536444101 (diff)
downloadlwn-3c3016f722b1d18ef73676f115cd1287e02f0b61.tar.gz
lwn-3c3016f722b1d18ef73676f115cd1287e02f0b61.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/hrtimer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h
index 1cc4577b3d4e..711ecf3429e5 100644
--- a/include/linux/hrtimer.h
+++ b/include/linux/hrtimer.h
@@ -435,6 +435,8 @@ extern void hrtimer_init_sleeper(struct hrtimer_sleeper *sl,
extern int schedule_hrtimeout_range(ktime_t *expires, unsigned long delta,
const enum hrtimer_mode mode);
+extern int schedule_hrtimeout_range_clock(ktime_t *expires,
+ unsigned long delta, const enum hrtimer_mode mode, int clock);
extern int schedule_hrtimeout(ktime_t *expires, const enum hrtimer_mode mode);
/* Soft interrupt function to run the hrtimer queues: */