Commit 4a3ec009 authored by Jialu Xu's avatar Jialu Xu Committed by Guo Ren

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: default avatarJialu Xu <xujialu@vimux.org>
Signed-off-by: default avatarGuo Ren <guoren@kernel.org>
parent 1b929c02
......@@ -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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment