From: Sun Jian <sun.jian.kdev@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-staging@lists.linux.dev,
Thomas Gleixner <tglx@linutronix.de>,
Ignacio Pena <ignacio.pena87@gmail.com>,
Bryant Boatright <bryant.boatright@proton.me>,
JJ Strnad <strnad.jj@gmail.com>,
linux-kernel@vger.kernel.org, Sun Jian <sun.jian.kdev@gmail.com>
Subject: [PATCH] staging: rtl8723bs: avoid short msleep duration
Date: Sun, 28 Dec 2025 13:49:02 +0800 [thread overview]
Message-ID: <20251228054902.9065-1-sun.jian.kdev@gmail.com> (raw)
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
next reply other threads:[~2025-12-28 5:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-28 5:49 Sun Jian [this message]
2025-12-28 12:54 ` [PATCH] staging: rtl8723bs: avoid short msleep duration Greg Kroah-Hartman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251228054902.9065-1-sun.jian.kdev@gmail.com \
--to=sun.jian.kdev@gmail.com \
--cc=bryant.boatright@proton.me \
--cc=gregkh@linuxfoundation.org \
--cc=ignacio.pena87@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=strnad.jj@gmail.com \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox