aboutsummaryrefslogtreecommitdiff
path: root/arch/csky
diff options
context:
space:
mode:
authorJialu Xu2022-12-19 14:36:41 +0800
committerGuo Ren2022-12-29 23:47:52 -0500
commit4a3ec00957fdf182be705d46e77acacc430f7d65 (patch)
tree990d9b95142bffe2d8fa2c158af8de1948fb8d90 /arch/csky
parent1b929c02afd37871d5afb9d498426f83432e71c2 (diff)
csky: delay: Add function alignment
Specify 8 bytes alignment for the function __delay or we get bad delay like udelay(10) will be 25us in fact. Signed-off-by: Jialu Xu <xujialu@vimux.org> Signed-off-by: Guo Ren <guoren@kernel.org>
Diffstat (limited to 'arch/csky')
-rw-r--r--arch/csky/lib/delay.c2
1 files changed, 1 insertions, 1 deletions
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"