mirror of
https://github.com/armbian/linux-cix.git
synced 2026-01-06 12:30:45 -08:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user