Deleted Added
full compact
39c39
< __FBSDID("$FreeBSD: head/sys/kern/sched_ule.c 212153 2010-09-02 16:23:05Z mdf $");
---
> __FBSDID("$FreeBSD: head/sys/kern/sched_ule.c 212416 2010-09-10 13:24:47Z mav $");
199c199
< static int sched_idlespinthresh = 4;
---
> static int sched_idlespinthresh = 64;
210a211
> volatile int tdq_cpu_idle; /* cpu_idle() is active. */
969c970
< if (cpu_idle_wakeup(cpu))
---
> if (!tdq->tdq_cpu_idle || cpu_idle_wakeup(cpu))
2548,2549c2549,2556
< if (tdq->tdq_load == 0)
< cpu_idle(switchcnt > 1);
---
> if (tdq->tdq_load == 0) {
> tdq->tdq_cpu_idle = 1;
> if (tdq->tdq_load == 0) {
> cpu_idle(switchcnt > sched_idlespinthresh);
> tdq->tdq_switchcnt++;
> }
> tdq->tdq_cpu_idle = 0;
> }