[nap] Formalise the CPU sleeping API

This commit is contained in:
Michael Brown
2008-10-12 23:36:53 +01:00
parent 658c6dba59
commit c0835339d0
12 changed files with 138 additions and 20 deletions
+21
View File
@@ -0,0 +1,21 @@
#ifndef _GPXE_NULL_NAP_H
#define _GPXE_NULL_NAP_H
/** @file
*
* Null CPU sleeping
*
*/
#ifdef NAP_NULL
#define NAP_PREFIX_null
#else
#define NAP_PREFIX_null __null_
#endif
static inline __always_inline void
NAP_INLINE ( null, cpu_nap ) ( void ) {
/* Do nothing */
}
#endif /* _GPXE_NULL_NAP_H */