iPXE
|
CPU sleeping. More...
#include <ipxe/api.h>
#include <config/nap.h>
#include <ipxe/null_nap.h>
#include <ipxe/efi/efi_nap.h>
#include <ipxe/linux/linux_nap.h>
#include <bits/nap.h>
Go to the source code of this file.
Macros | |
#define | NAP_INLINE(_subsys, _api_func) SINGLE_API_INLINE ( NAP_PREFIX_ ## _subsys, _api_func ) |
Calculate static inline CPU sleeping API function name. More... | |
#define | PROVIDE_NAP(_subsys, _api_func, _func) PROVIDE_SINGLE_API ( NAP_PREFIX_ ## _subsys, _api_func, _func ) |
Provide an CPU sleeping API implementation. More... | |
#define | PROVIDE_NAP_INLINE(_subsys, _api_func) PROVIDE_SINGLE_API_INLINE ( NAP_PREFIX_ ## _subsys, _api_func ) |
Provide a static inline CPU sleeping API implementation. More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
void | cpu_halt (void) |
Sleep until next CPU interrupt. More... | |
void | cpu_nap (void) |
Sleep with interrupts enabled until next CPU interrupt. More... | |
CPU sleeping.
Definition in file nap.h.
#define NAP_INLINE | ( | _subsys, | |
_api_func | |||
) | SINGLE_API_INLINE ( NAP_PREFIX_ ## _subsys, _api_func ) |
#define PROVIDE_NAP | ( | _subsys, | |
_api_func, | |||
_func | |||
) | PROVIDE_SINGLE_API ( NAP_PREFIX_ ## _subsys, _api_func, _func ) |
#define PROVIDE_NAP_INLINE | ( | _subsys, | |
_api_func | |||
) | PROVIDE_SINGLE_API_INLINE ( NAP_PREFIX_ ## _subsys, _api_func ) |
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
void cpu_halt | ( | void | ) |
Sleep until next CPU interrupt.
Referenced by efi_cpu_nap().
void cpu_nap | ( | void | ) |
Sleep with interrupts enabled until next CPU interrupt.
Referenced by gdbudp_recv(), getchar(), getchar_timeout(), nap_test_exec(), sleep_interruptible(), xenbus_backend_wait(), xenstore_recv(), xenstore_response(), and xenstore_send().