mirror of
https://github.com/ipxe/ipxe
synced 2025-12-28 18:42:53 +03:00
[nap] Formalise the CPU sleeping API
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
|
||||
#include <realmode.h>
|
||||
#include <bios.h>
|
||||
|
||||
/**************************************************************************
|
||||
* Save power by halting the CPU until the next interrupt
|
||||
**************************************************************************/
|
||||
void cpu_nap ( void ) {
|
||||
__asm__ __volatile__ ( REAL_CODE ( "sti\n\t"
|
||||
"hlt\n\t"
|
||||
"cli\n\t" ) : : );
|
||||
}
|
||||
Reference in New Issue
Block a user