diff options
author | Arjan van de Ven <arjan@linux.intel.com> | 2008-08-31 08:05:58 -0700 |
---|---|---|
committer | Arjan van de Ven <arjan@linux.intel.com> | 2008-09-05 21:34:53 -0700 |
commit | 7bb67439bf6bd3782f07f1d7be1e63406453d5de (patch) | |
tree | 6fed7b163d96067794b6d704f5d3a35b89a167b4 /include/linux | |
parent | 70bb08962ea9bd50797ae9f16b2493f5f7c65053 (diff) | |
download | kernel-crypto-7bb67439bf6bd3782f07f1d7be1e63406453d5de.tar.gz kernel-crypto-7bb67439bf6bd3782f07f1d7be1e63406453d5de.tar.xz kernel-crypto-7bb67439bf6bd3782f07f1d7be1e63406453d5de.zip |
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/linux')
-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 6d93dce61cb..becd17db1a1 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); extern void hrtimer_init_sleeper(struct hrtimer_sleeper *sl, struct task_struct *tsk); +extern int schedule_hrtimeout(ktime_t *expires, const enum hrtimer_mode mode); + /* Soft interrupt function to run the hrtimer queues: */ extern void hrtimer_run_queues(void); extern void hrtimer_run_pending(void); |