arch: x86: Add hlt instruction to save power in qemu_idle.c

This commit is contained in:
Masayuki Ishikawa 2020-05-04 17:28:42 +09:00 committed by patacongo
parent cd8492b612
commit 11bbe3997e
1 changed files with 2 additions and 0 deletions

View File

@ -83,5 +83,7 @@ void up_idle(void)
/* Sleep until an interrupt occurs to save power */
__asm__ __volatile__ ("hlt");
#endif
}