mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
ARC: Fix build failures for ARCompact in linux-next after ARCv2 support
Reported-by: Guenter Roeck <private@roeck-us.net> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
This commit is contained in:
parent
d1c6c2fbcd
commit
40b8ad8f76
2 changed files with 3 additions and 9 deletions
|
@ -47,13 +47,7 @@ void arch_cpu_idle(void)
|
|||
if (is_isa_arcompact()) {
|
||||
__asm__("sleep 0x3");
|
||||
} else {
|
||||
/* default irq priority (<=) which can interrupt the doze */
|
||||
const int arg = 0x10 | ARCV2_IRQ_DEF_PRIO;
|
||||
|
||||
__asm__ __volatile__(
|
||||
"sleep %0 \n"
|
||||
:
|
||||
:"r"(arg));
|
||||
__asm__("sleep 0x10");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue