Fix a longstanding bug where only the first part of the cpumask was

correctly set full.

Submitted by:	anonymous
This commit is contained in:
attilio 2011-05-14 19:36:12 +00:00
parent 336fa86932
commit c5a5c48e70

View File

@ -719,7 +719,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;