mdf bbc3957715 Fix a bug with sched_affinity() where it checks td_pinned of another
thread in a racy manner, which can lead to attempting to migrate a
thread that is pinned to a CPU.  Instead, have sched_switch() determine
which CPU a thread should run on if the current one is not allowed.

KASSERT in sched_bind() that the thread is not yet pinned to a CPU.

KASSERT in sched_switch() that only migratable threads or those moving
due to a sched_bind() are changing CPUs.

sched_affinity code came from jhb@.

MFC after:	2 weeks
2010-09-01 20:32:47 +00:00
..
2010-08-30 14:26:02 +00:00
2010-08-06 09:44:01 +00:00
2010-09-01 01:26:07 +00:00
2010-07-09 10:57:55 +00:00
2010-08-30 14:26:02 +00:00
2010-08-30 14:26:02 +00:00
2010-01-04 20:59:52 +00:00
2009-05-26 09:19:21 +00:00
2010-06-26 21:44:45 +00:00