blob: a609e95a26ad6cd58d7ba2c05f8331e4e03386d7 [file]
#ifndef _BITS_NAP_H
#define _BITS_NAP_H
/** @file
*
* RISCV-specific CPU sleeping API implementations
*
*/
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
FILE_SECBOOT ( PERMITTED );
/**
* Sleep until next CPU interrupt
*
*/
static inline __attribute__ (( always_inline )) void cpu_halt ( void ) {
__asm__ __volatile__ ( "wfi" );
}
#endif /* _BITS_NAP_H */