linux/drivers/staging/rtl8192u
Xenia Ragiadakou 26f3561db7 staging: rtl8192u: replace msleep(1) with usleep_range() in r819xU_phy.c
This patch fixes the following checkpatch warning:
WARNING: msleep < 20ms can sleep for up to 20ms

The implementation of msleep() is based on jiffies timeout
subsystem. Hence, its resolution is constrained by the value
of HZ tick rate. When HZ variable is configured to 100,
the jiffies variable is updated every 10 ms, so a timeout
of 1ms cannot be met using jiffies (it will be rounded up
to 10ms).

This patch replaces msleep(1) with usleep_range(1000, 1000).
usleep_range() uses hrtimers subsystem which is not bound
to HZ value and can provide microsecond-level resolution.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-06-24 16:08:33 -07:00
..
ieee80211 staging/rtl8192u: remove commented out __list_for_each usage 2013-06-18 11:22:58 -07:00
authors
changes staging/rtl8192u: cleanfile run 2013-01-07 12:52:58 -08:00
copying
dot11d.h
ieee80211_crypt.h
Kconfig
Makefile
r819xU_cmdpkt.c Staging: rtl8192u: fix a reversed test 2013-06-06 11:57:15 -07:00
r819xU_cmdpkt.h STAGING: rtl8192u: fix checkpatch error about pointer position in r819xU_cmdpkt 2013-05-13 07:11:47 -07:00
r819xU_firmware_img.c
r819xU_firmware_img.h
r819xU_firmware.c staging: rtl8192u: fix read_nic_* functions 2013-06-06 11:57:16 -07:00
r819xU_firmware.h staging/rtl8192u: cleanfile run 2013-01-07 12:52:58 -08:00
r819xU_HTGen.h staging/rtl8192u: cleanfile run 2013-01-07 12:52:58 -08:00
r819xU_HTType.h staging/rtl8192u: cleanfile run 2013-01-07 12:52:58 -08:00
r819xU_phy.c staging: rtl8192u: replace msleep(1) with usleep_range() in r819xU_phy.c 2013-06-24 16:08:33 -07:00
r819xU_phy.h STAGING: rtl8192u: fix checkpatch error about pointer position in r819xU_phy 2013-05-13 07:11:48 -07:00
r819xU_phyreg.h staging/rtl8192u: cleanfile run 2013-01-07 12:52:58 -08:00
r8180_93cx6.c staging: rtl8192u: fix read_nic_* functions 2013-06-06 11:57:16 -07:00
r8180_93cx6.h
r8180_pm.c
r8180_pm.h staging/rtl8192u: indent with tabs, not spaces 2013-01-07 12:53:40 -08:00
r8190_rtl8256.c rtl8192u: remove whitespace after '(' and before ')' in r8190_rtl8256.c 2013-05-16 16:45:51 -07:00
r8190_rtl8256.h STAGING: rtl8192u: fix checkpatch error about pointer position in r8190_rtl8256 2013-05-13 07:11:48 -07:00
r8192U_core.c staging: rtl8192u: fix macros in r8192U.h 2013-06-11 17:18:04 -07:00
r8192U_dm.c staging: rtl8192u: fix read_nic_* functions 2013-06-06 11:57:16 -07:00
r8192U_dm.h staging: rtl8192u: fix coding style 2013-03-28 16:07:25 -07:00
r8192U_hw.h staging: rtl8192u: fix read_nic_* functions 2013-06-06 11:57:16 -07:00
r8192U_wx.c staging: rtl8192u: fix read_nic_* functions 2013-06-06 11:57:16 -07:00
r8192U_wx.h
r8192U.h staging: rtl8192u: fix macros in r8192U.h 2013-06-11 17:18:04 -07:00