compat: Define usleep_range(min, max) as msleep(max/1000) for <2.6.36
authorVasanthakumar Thiagarajan <vasanth@atheros.com>
Thu, 24 Feb 2011 23:39:31 +0000 (15:39 -0800)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Thu, 24 Feb 2011 23:39:31 +0000 (15:39 -0800)
ops_flush() of ath9k uses usleep_range().

Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
include/linux/compat-2.6.36.h

index 0e3b77470ec66c1a9e9a70f9727c420f0d4c49a3..806993b22ae5389a0475c8ebd4169a06c509d153 100644 (file)
@@ -119,6 +119,7 @@ static inline void tty_unlock(void) __releases(kernel_lock)
 }
 #define tty_locked()           (kernel_locked())
 
+#define usleep_range(_min, _max)       msleep((_max) / 1000)
 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36)) */
 
 #endif /* LINUX_26_36_COMPAT_H */