csky: add alignment for the delay code
PATCH RESEND 1/1 csky: add alignment for the delay code
Specify 8 bytes alignment for the function __delay or we get bad delay like udelay(10) will be 25us in fact.
Thanks for Guo Ren's help.
Signed-off-by Jialu Xu <[email protected]>
--- arch/csky/lib/delay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/csky/lib/delay.c +1 -1
@@ -5,7 +5,7 @@#include <linux/init.h> #include <linux/delay.h> -void __delay (unsigned long loops) +void __aligned(8) __delay (unsigned long loops) { asmvolatile ( "mov r0, r0\n"
Signature · 1 line
2.30.2