Re: ath / 802.11n performance issues and timer code

From: Adrian Chadd <adrian_at_freebsd.org>
Date: Tue, 27 Sep 2011 11:25:57 +0800
.. 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
Received on Tue Sep 27 2011 - 01:25:59 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:18 UTC