You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

null_nap.h 346B

1234567891011121314151617181920212223
  1. #ifndef _IPXE_NULL_NAP_H
  2. #define _IPXE_NULL_NAP_H
  3. /** @file
  4. *
  5. * Null CPU sleeping
  6. *
  7. */
  8. FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
  9. #ifdef NAP_NULL
  10. #define NAP_PREFIX_null
  11. #else
  12. #define NAP_PREFIX_null __null_
  13. #endif
  14. static inline __always_inline void
  15. NAP_INLINE ( null, cpu_nap ) ( void ) {
  16. /* Do nothing */
  17. }
  18. #endif /* _IPXE_NULL_NAP_H */