diff options
author | Arjan van de Ven <arjan@linux.intel.com> | 2008-08-31 11:05:58 -0400 |
---|---|---|
committer | Arjan van de Ven <arjan@linux.intel.com> | 2008-09-06 00:34:53 -0400 |
commit | 7bb67439bf6bd3782f07f1d7be1e63406453d5de (patch) | |
tree | 6fed7b163d96067794b6d704f5d3a35b89a167b4 /include | |
parent | 70bb08962ea9bd50797ae9f16b2493f5f7c65053 (diff) |
select: Introduce a hrtimeout function
This patch adds a schedule_hrtimeout() function, to be used by select() and
poll() in a later patch. This function works similar to schedule_timeout()
in most ways, but takes a timespec rather than jiffies.
With a lot of contributions/fixes from Thomas
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/hrtimer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h index 6d93dce61cbb..becd17db1a1a 100644 --- a/include/linux/hrtimer.h +++ b/include/linux/hrtimer.h | |||
@@ -346,6 +346,8 @@ extern long hrtimer_nanosleep_restart(struct restart_block *restart_block); | |||
346 | extern void hrtimer_init_sleeper(struct hrtimer_sleeper *sl, | 346 | extern void hrtimer_init_sleeper(struct hrtimer_sleeper *sl, |
347 | struct task_struct *tsk); | 347 | struct task_struct *tsk); |
348 | 348 | ||
349 | extern int schedule_hrtimeout(ktime_t *expires, const enum hrtimer_mode mode); | ||
350 | |||
349 | /* Soft interrupt function to run the hrtimer queues: */ | 351 | /* Soft interrupt function to run the hrtimer queues: */ |
350 | extern void hrtimer_run_queues(void); | 352 | extern void hrtimer_run_queues(void); |
351 | extern void hrtimer_run_pending(void); | 353 | extern void hrtimer_run_pending(void); |