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

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

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );

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

#endif /* _BITS_NAP_H */