From: "tip-bot2 for Frederic Weisbecker" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: "Chen-Yu Tsai" <wenst@chromium.org>,
Frederic Weisbecker <frederic@kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
x86@kernel.org, linux-kernel@vger.kernel.org
Subject: [tip: timers/urgent] delay: Fix ndelay() spuriously treated as udelay()
Date: Fri, 29 Nov 2024 10:48:22 -0000 [thread overview]
Message-ID: <173287730233.412.16769417461165655460.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20241121152931.51884-1-frederic@kernel.org>
The following commit has been merged into the timers/urgent branch of tip:
Commit-ID: 4d17c25eaf5d8b95d70726e6946e8eb94619e139
Gitweb: https://git.kernel.org/tip/4d17c25eaf5d8b95d70726e6946e8eb94619e139
Author: Frederic Weisbecker <frederic@kernel.org>
AuthorDate: Thu, 21 Nov 2024 16:29:31 +01:00
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitterDate: Fri, 29 Nov 2024 11:40:22 +01:00
delay: Fix ndelay() spuriously treated as udelay()
A recent rework on delay functions wrongly ended up calling __udelay()
instead of __ndelay() for nanosecond delays, increasing those by 1000.
As a result hangs have been observed on boot
Restore the right function calls.
Fixes: 19e2d91d8cb1 ("delay: Rework udelay and ndelay")
Reported-by: Chen-Yu Tsai <wenst@chromium.org>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Link: https://lore.kernel.org/all/20241121152931.51884-1-frederic@kernel.org
---
include/asm-generic/delay.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/asm-generic/delay.h b/include/asm-generic/delay.h
index 76cf237..03b0ec7 100644
--- a/include/asm-generic/delay.h
+++ b/include/asm-generic/delay.h
@@ -75,11 +75,11 @@ static __always_inline void ndelay(unsigned long nsec)
{
if (__builtin_constant_p(nsec)) {
if (nsec >= DELAY_CONST_MAX)
- __bad_udelay();
+ __bad_ndelay();
else
__const_udelay(nsec * NDELAY_CONST_MULT);
} else {
- __udelay(nsec);
+ __ndelay(nsec);
}
}
#define ndelay(x) ndelay(x)
next prev parent reply other threads:[~2024-11-29 10:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-21 15:29 [PATCH] " Frederic Weisbecker
2024-11-22 2:36 ` Chen-Yu Tsai
2024-11-25 9:56 ` AngeloGioacchino Del Regno
2024-11-29 10:48 ` tip-bot2 for Frederic Weisbecker [this message]
2024-12-02 14:04 ` Nícolas F. R. A. Prado
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=173287730233.412.16769417461165655460.tip-bot2@tip-bot2 \
--to=tip-bot2@linutronix.de \
--cc=angelogioacchino.delregno@collabora.com \
--cc=frederic@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=wenst@chromium.org \
--cc=x86@kernel.org \
/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
all inboxes | Powered by JetHome®