[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20221219063640.63708-1-xujialu@vimux.org>
Date: Mon, 19 Dec 2022 14:36:41 +0800
From: Jialu Xu <xujialu@...ux.org>
To: guoren@...nel.org, linux-csky@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, Jialu Xu <xujialu@...ux.org>
Subject: [PATCH RESEND] csky: add alignment for the delay code
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@...ux.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
Powered by blists - more mailing lists