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 
12 #ifdef NAP_NULL
13 #define NAP_PREFIX_null
14 #else
15 #define NAP_PREFIX_null __null_
16 #endif
17 
18 static inline __always_inline void
19 NAP_INLINE ( null, cpu_nap ) ( void ) {
20  /* Do nothing */
21 }
22 
23 #endif /* _IPXE_NULL_NAP_H */
#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:19
void cpu_nap(void)
Sleep until next CPU interrupt.