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:
parent
1b929c02af
commit
4a3ec00957
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue