ath / 802.11n performance issues and timer code
Adrian Chadd
adrian at freebsd.org
Tue Sep 27 03:25:59 UTC 2011
.. erm, sys/mips/mips/machdep.c:
/*
* 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();
}
__asm __volatile ("wait");
if (!busy) {
cpu_activeclock();
critical_exit();
}
}
.. does that look right?
Adrian
More information about the freebsd-current
mailing list