mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
arch: x86: Add hlt instruction to save power in qemu_idle.c
This commit is contained in:
committed by
patacongo
parent
cd8492b612
commit
11bbe3997e
@@ -83,5 +83,7 @@ void up_idle(void)
|
||||
|
||||
/* Sleep until an interrupt occurs to save power */
|
||||
|
||||
__asm__ __volatile__ ("hlt");
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user