iPXE
null_nap.h
Go to the documentation of this file.
1#ifndef _IPXE_NULL_NAP_H
2#define _IPXE_NULL_NAP_H
3
4/** @file
5 *
6 * Null CPU sleeping
7 *
8 */
9
10FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11FILE_SECBOOT ( PERMITTED );
12
13#ifdef NAP_NULL
14#define NAP_PREFIX_null
15#else
16#define NAP_PREFIX_null __null_
17#endif
18
19static inline __always_inline void
20NAP_INLINE ( null, cpu_nap ) ( void ) {
21 /* Do nothing */
22}
23
24#endif /* _IPXE_NULL_NAP_H */
#define __always_inline
Declare a function to be always inline.
Definition compiler.h:611
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:896
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Definition compiler.h:926
#define NAP_INLINE(_subsys, _api_func)
Calculate static inline CPU sleeping API function name.
Definition nap.h:23
void cpu_nap(void)
Sleep with interrupts enabled until next CPU interrupt.