From patchwork Sat Feb 19 09:22:21 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasanthakumar Thiagarajan X-Patchwork-Id: 574461 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1J9NHL1020718 for ; Sat, 19 Feb 2011 09:23:17 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752737Ab1BSJW1 (ORCPT ); Sat, 19 Feb 2011 04:22:27 -0500 Received: from mail.atheros.com ([12.19.149.2]:37955 "EHLO mail.atheros.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752028Ab1BSJWZ (ORCPT ); Sat, 19 Feb 2011 04:22:25 -0500 Received: from mail.atheros.com ([10.10.20.105]) by sidewinder.atheros.com for ; Sat, 19 Feb 2011 01:22:04 -0800 Received: from CHEXHC-01.global.atheros.com (10.12.0.100) by SC1EXHC-01.global.atheros.com (10.10.20.104) with Microsoft SMTP Server (TLS) id 8.2.213.0; Sat, 19 Feb 2011 01:22:25 -0800 Received: from smtpch.atheros.com (10.12.4.43) by CHEXHC-01.global.atheros.com (10.12.0.100) with Microsoft SMTP Server (TLS) id 8.2.176.0; Sat, 19 Feb 2011 14:52:21 +0530 Received: by smtpch.atheros.com (sSMTP sendmail emulation); Sat, 19 Feb 2011 01:22:21 -0800 From: Vasanthakumar Thiagarajan To: CC: , Subject: [PATCH] compat: Define usleep_range(min, max) as msleep(max/1000) for <2.6.36 Date: Sat, 19 Feb 2011 01:22:21 -0800 Message-ID: <1298107341-9894-1-git-send-email-vasanth@atheros.com> X-Mailer: git-send-email 1.7.0.4 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sat, 19 Feb 2011 09:23:20 +0000 (UTC) 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 */