]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC 303503: Don't treat NOCPU as a valid CPU to CPU_ISSET.
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 9 Aug 2016 18:59:16 +0000 (18:59 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 9 Aug 2016 18:59:16 +0000 (18:59 +0000)
commite92eddde227123f7f739c3e09c4b7f3c65004029
treefbe148d17cfb25c221fc729e762cea998e2fe1b3
parentb6b0a9902ca90e137586f053f4b04f9cde394e47
MFC 303503: Don't treat NOCPU as a valid CPU to CPU_ISSET.

If a thread is created bound to a cpuset it might already be bound before
its very first timeslice, and td_lastcpu will be NOCPU in that case.

git-svn-id: svn://svn.freebsd.org/base/stable/9@303885 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/sched_4bsd.c