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>
This commit is contained in:
Jialu Xu 2022-12-19 14:36:41 +08:00 committed by Guo Ren
parent 1b929c02af
commit 4a3ec00957
1 changed files with 1 additions and 1 deletions

View 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"