From: Jialu Xu <xujialu@vimux.org>
To: guoren@kernel.org, linux-csky@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, Jialu Xu <xujialu@vimux.org>
Subject: [PATCH] csky: add alignment for the delay code
Date: Fri, 18 Nov 2022 10:40:03 +0800 [thread overview]
Message-ID: <20221118024003.1245339-1-xujialu@vimux.org> (raw)
Specify 8 bytes alignment for the function __delay or we get bad delay
like udelay(10) will be 25us in fact.
Thanks for Guo Ren's help.
Signed-off-by: Jialu Xu <xujialu@vimux.org>
---
arch/csky/lib/delay.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/csky/lib/delay.c b/arch/csky/lib/delay.c
index 22570b0790d6..f5db317313bb 100644
--- a/arch/csky/lib/delay.c
+++ b/arch/csky/lib/delay.c
@@ -5,7 +5,7 @@
#include <linux/init.h>
#include <linux/delay.h>
-void __delay(unsigned long loops)
+void __aligned(8) __delay(unsigned long loops)
{
asm volatile (
"mov r0, r0\n"
--
2.30.2
reply other threads:[~2022-11-18 2:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20221118024003.1245339-1-xujialu@vimux.org \
--to=xujialu@vimux.org \
--cc=guoren@kernel.org \
--cc=linux-csky@vger.kernel.org \
--cc=linux-kernel@vger.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).