linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] compat: Define usleep_range(min, max) as msleep(max/1000) for <2.6.36
@ 2011-02-19  9:22 Vasanthakumar Thiagarajan
  2011-02-24 23:40 ` Luis R. Rodriguez
  0 siblings, 1 reply; 2+ messages in thread
From: Vasanthakumar Thiagarajan @ 2011-02-19  9:22 UTC (permalink / raw)
  To: mcgrof; +Cc: linux-wireless, linux-bluetooth

ops_flush() of ath9k uses usleep_range().

Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
---
 include/linux/compat-2.6.36.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/compat-2.6.36.h b/include/linux/compat-2.6.36.h
index 74d2309..8d8b636 100644
--- a/include/linux/compat-2.6.36.h
+++ b/include/linux/compat-2.6.36.h
@@ -101,6 +101,7 @@ int no_printk(const char *s, ...) { return 0; }
 #define alloc_workqueue(name, flags, max_active) __create_workqueue(name, flags, max_active, 0)
 #endif
 
+#define usleep_range(_min, _max)	msleep((_max) / 1000)
 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36)) */
 
 #endif /* LINUX_26_36_COMPAT_H */
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] compat: Define usleep_range(min, max) as msleep(max/1000) for <2.6.36
  2011-02-19  9:22 [PATCH] compat: Define usleep_range(min, max) as msleep(max/1000) for <2.6.36 Vasanthakumar Thiagarajan
@ 2011-02-24 23:40 ` Luis R. Rodriguez
  0 siblings, 0 replies; 2+ messages in thread
From: Luis R. Rodriguez @ 2011-02-24 23:40 UTC (permalink / raw)
  To: Vasanthakumar Thiagarajan; +Cc: mcgrof, linux-wireless, linux-bluetooth

On Sat, Feb 19, 2011 at 1:22 AM, Vasanthakumar Thiagarajan
<vasanth@atheros.com> wrote:
> ops_flush() of ath9k uses usleep_range().
>
> Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>

Thanks, applied and pushed!

  Luis

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-02-24 23:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-19  9:22 [PATCH] compat: Define usleep_range(min, max) as msleep(max/1000) for <2.6.36 Vasanthakumar Thiagarajan
2011-02-24 23:40 ` Luis R. Rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).