arch: x86: Add hlt instruction to save power in qemu_idle.c
This commit is contained in:
parent
cd8492b612
commit
11bbe3997e
|
@ -83,5 +83,7 @@ void up_idle(void)
|
|||
|
||||
/* Sleep until an interrupt occurs to save power */
|
||||
|
||||
__asm__ __volatile__ ("hlt");
|
||||
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue