From: Vasanthakumar Thiagarajan Date: Thu, 24 Feb 2011 23:39:31 +0000 (-0800) Subject: compat: Define usleep_range(min, max) as msleep(max/1000) for <2.6.36 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6dae50166e03b355746a6d34d7c255c4abe9b97a;p=openwrt%2Fstaging%2Fblogic.git compat: Define usleep_range(min, max) as msleep(max/1000) for <2.6.36 ops_flush() of ath9k uses usleep_range(). Signed-off-by: Vasanthakumar Thiagarajan --- diff --git a/include/linux/compat-2.6.36.h b/include/linux/compat-2.6.36.h index 0e3b77470ec6..806993b22ae5 100644 --- a/include/linux/compat-2.6.36.h +++ b/include/linux/compat-2.6.36.h @@ -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 */