diff options
| author | Jia-Ju Bai <[email protected]> | 2018-04-10 20:25:34 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-04-23 15:51:34 +0200 |
| commit | 72cbd314bc79ba105d9e0184e4b00b2cf6f3b42d (patch) | |
| tree | 331a685733fdb2e47c0c93b59b7fde1acf0e16c5 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 6c93c63a634ae7036d699a1e7f2121a9f2dee5fe (diff) | |
staging: rtl8192u: Replace mdelay with usleep_range in dm_TXPowerTrackingCallback_TSSI
dm_TXPowerTrackingCallback_TSSI() is never called in atomic context.
dm_TXPowerTrackingCallback_TSSI() is only called by
dm_txpower_trackingcallback(), which is set a parameter of
INIT_DELAYED_WORK() in rtl8192_init_priv_task().
Despite never getting called from atomic context,
dm_TXPowerTrackingCallback_TSSI() 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/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions