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 0e3b774..806993b 100644 (file)
@@ -119,6 +119,7 @@ static inline void tty_unlock(void) __releases(kernel_lock)
 }
 #define tty_locked()           (kernel_locked())
 
 }
 #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 */
 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36)) */
 
 #endif /* LINUX_26_36_COMPAT_H */