Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jialu Xu and committed by
Guo Ren
4a3ec009 1b929c02

+1 -1
+1 -1
arch/csky/lib/delay.c
··· 5 5 #include <linux/init.h> 6 6 #include <linux/delay.h> 7 7 8 - void __delay(unsigned long loops) 8 + void __aligned(8) __delay(unsigned long loops) 9 9 { 10 10 asm volatile ( 11 11 "mov r0, r0\n"