Re: [PATCH] staging: rtl8723bs: replace msleep with usleep_range in _rtw_free_evt_priv
From: Ethan Tidmore
Date: Wed Apr 01 2026 - 00:13:38 EST
On Tue Mar 31, 2026 at 10:42 PM CDT, Marco Lu wrote:
> The msleep(10) call is an imprecise busy-wait function in
> core/rtw_cmd.c/_rtw_free_evt_priv due to timer jitter.
>
> Replace it with usleep_range(10000, 11000)
> to save CPU cycles to provide more precise timing.
>
> Signed-off-by: Marco Lu <mcl7d9@xxxxxxxxxxx>
> ---
This has been NAKed in the past by Greg. Also, fsleep() is the new API.
Thanks,
ET