mirror of
https://github.com/ipxe/ipxe
synced 2025-12-26 17:42:47 +03:00
[linux] Add nap
Signed-off-by: Piotr Jaroszyński <p.jaroszynski@gmail.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
committed by
Michael Brown
parent
6ec1c509e4
commit
9ab6761b9c
18
src/include/ipxe/linux/linux_nap.h
Normal file
18
src/include/ipxe/linux/linux_nap.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef _IPXE_LINUX_NAP_H
|
||||
#define _IPXE_LINUX_NAP_H
|
||||
|
||||
/** @file
|
||||
*
|
||||
* Linux CPU sleeping
|
||||
*
|
||||
*/
|
||||
|
||||
FILE_LICENCE(GPL2_OR_LATER);
|
||||
|
||||
#ifdef NAP_LINUX
|
||||
#define NAP_PREFIX_linux
|
||||
#else
|
||||
#define NAP_PREFIX_linux __linux_
|
||||
#endif
|
||||
|
||||
#endif /* _IPXE_LINUX_NAP_H */
|
||||
@@ -43,6 +43,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
|
||||
/* Include all architecture-independent I/O API headers */
|
||||
#include <ipxe/null_nap.h>
|
||||
#include <ipxe/linux/linux_nap.h>
|
||||
|
||||
/* Include all architecture-dependent I/O API headers */
|
||||
#include <bits/nap.h>
|
||||
|
||||
Reference in New Issue
Block a user