public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH] staging: rtl8723bs: avoid short msleep duration
@ 2025-12-28  5:49 Sun Jian
  2025-12-28 12:54 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 2+ messages in thread
From: Sun Jian @ 2025-12-28  5:49 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: linux-staging, Thomas Gleixner, Ignacio Pena, Bryant Boatright,
	JJ Strnad, linux-kernel, Sun Jian

msleep() is documented to sleep for at least the specified
number of milliseconds, but small values may result in a
longer delay due to scheduler granularity.

Replace msleep(10) with msleep(20) to match the effective
sleep duration and silence checkpatch warning.

No functional change intended.

Signed-off-by: Sun Jian <sun.jian.kdev@gmail.com>
---
 drivers/staging/rtl8723bs/core/rtw_cmd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_cmd.c b/drivers/staging/rtl8723bs/core/rtw_cmd.c
index ef2d92b5588a..0edf9ecc4bed 100644
--- a/drivers/staging/rtl8723bs/core/rtw_cmd.c
+++ b/drivers/staging/rtl8723bs/core/rtw_cmd.c
@@ -215,7 +215,7 @@ void _rtw_free_evt_priv(struct	evt_priv *pevtpriv)
 {
 	_cancel_workitem_sync(&pevtpriv->c2h_wk);
 	while (pevtpriv->c2h_wk_alive)
-		msleep(10);
+		msleep(20);
 
 	while (!rtw_cbuf_empty(pevtpriv->c2h_queue)) {
 		void *c2h = rtw_cbuf_pop(pevtpriv->c2h_queue);
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-12-28 12:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-28  5:49 [PATCH] staging: rtl8723bs: avoid short msleep duration Sun Jian
2025-12-28 12:54 ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox