diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2010-08-04 04:53:00 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-08-04 04:53:00 -0400 |
commit | e1b004c3ef9c59db5f013528628b51c8653155ec (patch) | |
tree | 2c60763d361df84131852c3351c7fc0cd754614d /kernel/timer.c | |
parent | af5ab277ded04bd9bc6b048c5a2f0e7d70ef0867 (diff) |
Revert "timer: Added usleep[_range] timer"
This reverts commit 22b8f15c2f7130bb0386f548428df2ffd4e81903 to merge
an advanced version.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/timer.c')
-rw-r--r-- | kernel/timer.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/kernel/timer.c b/kernel/timer.c index f110f241ab66..ce98685cd1cb 100644 --- a/kernel/timer.c +++ b/kernel/timer.c | |||
@@ -1755,25 +1755,3 @@ unsigned long msleep_interruptible(unsigned int msecs) | |||
1755 | } | 1755 | } |
1756 | 1756 | ||
1757 | EXPORT_SYMBOL(msleep_interruptible); | 1757 | EXPORT_SYMBOL(msleep_interruptible); |
1758 | |||
1759 | static int __sched do_usleep_range(unsigned long min, unsigned long max) | ||
1760 | { | ||
1761 | ktime_t kmin; | ||
1762 | unsigned long delta; | ||
1763 | |||
1764 | kmin = ktime_set(0, min * NSEC_PER_USEC); | ||
1765 | delta = max - min; | ||
1766 | return schedule_hrtimeout_range(&kmin, delta, HRTIMER_MODE_REL); | ||
1767 | } | ||
1768 | |||
1769 | /** | ||
1770 | * usleep_range - Drop in replacement for udelay where wakeup is flexible | ||
1771 | * @min: Minimum time in usecs to sleep | ||
1772 | * @max: Maximum time in usecs to sleep | ||
1773 | */ | ||
1774 | void usleep_range(unsigned long min, unsigned long max) | ||
1775 | { | ||
1776 | __set_current_state(TASK_UNINTERRUPTIBLE); | ||
1777 | do_usleep_range(min, max); | ||
1778 | } | ||
1779 | EXPORT_SYMBOL(usleep_range); | ||