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 
10 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11 FILE_SECBOOT ( PERMITTED );
12 
13 #ifdef NAP_NULL
14 #define NAP_PREFIX_null
15 #else
16 #define NAP_PREFIX_null __null_
17 #endif
18 
19 static inline __always_inline void
20 NAP_INLINE ( null, cpu_nap ) ( void ) {
21  /* Do nothing */
22 }
23 
24 #endif /* _IPXE_NULL_NAP_H */
FILE_SECBOOT(PERMITTED)
#define __always_inline
Declare a function to be always inline.
Definition: compiler.h:611
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
static __always_inline void NAP_INLINE(null, cpu_nap)(void)
Definition: null_nap.h:20
void cpu_nap(void)
Sleep with interrupts enabled until next CPU interrupt.