Skip to content

Commit 4a3ec00

Browse files
vimuxxguoren83
authored andcommitted
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 <[email protected]> Signed-off-by: Guo Ren <[email protected]>
1 parent 1b929c0 commit 4a3ec00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/csky/lib/delay.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <linux/init.h>
66
#include <linux/delay.h>
77

8-
void __delay(unsigned long loops)
8+
void __aligned(8) __delay(unsigned long loops)
99
{
1010
asm volatile (
1111
"mov r0, r0\n"

0 commit comments

Comments
 (0)