aboutsummaryrefslogtreecommitdiffstats
path: root/src/arch/x86/include/bits/nap.h
blob: b7dea736d97cdbf2b6c347e33983648565d38b2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _BITS_NAP_H
#define _BITS_NAP_H

/** @file
 *
 * x86-specific CPU sleeping API implementations
 *
 */

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );

#include <ipxe/bios_nap.h>

/**
 * Sleep until next CPU interrupt
 *
 */
static inline __attribute__ (( always_inline )) void cpu_halt ( void ) {
	__asm__ __volatile__ ( "hlt" );
}

#endif /* _BITS_NAP_H */