mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02: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