aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJia-Ju Bai <[email protected]>2018-04-10 20:25:09 +0800
committerGreg Kroah-Hartman <[email protected]>2018-04-23 15:51:34 +0200
commit6c93c63a634ae7036d699a1e7f2121a9f2dee5fe (patch)
tree53bc78957fd9024bb231cf2e36161f28bd1dbad9 /tools/perf/scripts/python
parenta40c973eebe61aa9242f5501d5d5598778e3bea2 (diff)
staging: rtl8192u: Replace mdelay with usleep_range in rtl8192_usb_disconnect
rtl8192_usb_disconnect() is never called in atomic context. rtl8192_usb_disconnect() is only set as ".disconnect" in struct usb_driver. Despite never getting called from atomic context, rtl8192_usb_disconnect() calls mdelay() to busily wait. This is not necessary and can be replaced with usleep_range() to avoid busy waiting. This is found by a static analysis tool named DCNS written by myself. And I also manually check it. Signed-off-by: Jia-Ju Bai <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions