Merge r221912 from largeSMP project branch:

Fix a long-standing bug in cpuset_thread0() where only the first part
of cs_mask is set full.

Submitted by:	anonymous
MFC after:	1 week
This commit is contained in:
Attilio Rao 2011-05-22 21:35:03 +00:00
parent df3f1d6851
commit e3071102d6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=222201

View File

@ -676,7 +676,7 @@ cpuset_thread0(void)
* cpuset_create() due to NULL parent.
*/
set = uma_zalloc(cpuset_zone, M_WAITOK | M_ZERO);
set->cs_mask.__bits[0] = -1;
CPU_FILL(&set->cs_mask);
LIST_INIT(&set->cs_children);
LIST_INSERT_HEAD(&cpuset_ids, set, cs_link);
set->cs_ref = 1;