diff options
author | Jialu Xu <xujialu@vimux.org> | 2022-12-19 07:36:41 +0100 |
---|---|---|
committer | Guo Ren <guoren@linux.alibaba.com> | 2022-12-30 05:47:52 +0100 |
commit | 4a3ec00957fdf182be705d46e77acacc430f7d65 (patch) | |
tree | 990d9b95142bffe2d8fa2c158af8de1948fb8d90 /arch/csky | |
parent | Linux 6.2-rc1 (diff) | |
download | linux-4a3ec00957fdf182be705d46e77acacc430f7d65.tar.xz linux-4a3ec00957fdf182be705d46e77acacc430f7d65.zip |
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.c | 2 |
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" |