mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 07:45:16 +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 */
|
/* Sleep until an interrupt occurs to save power */
|
||||||
|
|
||||||
|
__asm__ __volatile__ ("hlt");
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user