diff options
author | jeff <jeff@FreeBSD.org> | 2008-01-15 09:03:09 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2008-01-15 09:03:09 +0000 |
commit | 7a1cea460a6aa1f4af7bc991df6ecc77da860387 (patch) | |
tree | 0cada86322bda662ed9c0289f917629488de92c1 /lib/libc/stdio/xprintf_str.c | |
parent | 90f3f8edb2bda24c666a8a36141ac4c371a0f58a (diff) | |
download | FreeBSD-src-7a1cea460a6aa1f4af7bc991df6ecc77da860387.zip FreeBSD-src-7a1cea460a6aa1f4af7bc991df6ecc77da860387.tar.gz |
- When executing the 'tryself' branch in sched_pickcpu() look at the
lowest priority on the queue for the current cpu vs curthread's
priority. In the case that curthread is waking up many threads of a
lower priority as would happen with a turnstile_broadcast() or wakeup()
of many threads this prevents them from all ending up on the current cpu.
- In sched_add() make the relationship between a scheduled ithread and
the current cpu advisory rather than strict. Only give the ithread
affinity for the current cpu if it's actually being scheduled from
a hardware interrupt. This prevents it from migrating when it simply
blocks on a lock.
Sponsored by: Nokia
Diffstat (limited to 'lib/libc/stdio/xprintf_str.c')
0 files changed, 0 insertions, 0 deletions