]> Git Repo - linux.git/commitdiff
csky: delay: Add function alignment
authorJialu Xu <[email protected]>
Mon, 19 Dec 2022 06:36:41 +0000 (14:36 +0800)
committerGuo Ren <[email protected]>
Fri, 30 Dec 2022 04:47:52 +0000 (23:47 -0500)
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 <[email protected]>
Signed-off-by: Guo Ren <[email protected]>
arch/csky/lib/delay.c

index 22570b0790d6fb9436e389a51c16833974c7b547..f5db317313bb3303532da94d5eb883889f6b18fc 100644 (file)
@@ -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"
This page took 0.052299 seconds and 4 git commands to generate.