FreeBSD/sys/mips/mips/machdep.c
/*
 * call platform specific code to halt (until next interrupt) for the idle loop
 */
call platform specific code to halt (until next interrupt) for the idle loop
call platform specific code to halt ( until next interrupt ) for the idle loop
void
cpu_idle(int busy)
{
	KASSERT((mips_rd_status() & MIPS_SR_INT_IE) != 0,
		("interrupts disabled in idle process."));
	KASSERT((mips_rd_status() & MIPS_INT_MASK) != 0,
		("all interrupts masked in idle process."));
	if (!busy) {
		critical_enter();
		cpu_idleclock();
	}
	mips_wait();
	if (!busy) {
		cpu_activeclock();
		critical_exit();
	}
}
void cpu_idle ( int busy ) { KASSERT ( ( mips_rd_status ( ) & MIPS_SR_INT_IE ) != 0 , ( " " ) ) ; KASSERT ( ( mips_rd_status ( ) & MIPS_INT_MASK ) != 0 , ( " " ) ) ; if ( ! busy ) { critical_enter ( ) ; cpu_idleclock ( ) ; } mips_wait ( ) ; if ( ! busy ) { cpu_activeclock ( ) ; critical_exit ( ) ; } }
call platform specific code to halt (until next interrupt) for the idle loop
call platform specific code to halt ( until next interrupt ) for the idle loop