mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-12 09:58:36 +00:00
cpuset: refcount-clean
This commit is contained in:
parent
4cc8701067
commit
1a7bb89629
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=367737
@ -1482,7 +1482,7 @@ cpuset_thread0(void)
|
||||
CPU_COPY(&all_cpus, &set->cs_mask);
|
||||
LIST_INIT(&set->cs_children);
|
||||
LIST_INSERT_HEAD(&cpuset_ids, set, cs_link);
|
||||
set->cs_ref = 1;
|
||||
refcount_init(&set->cs_ref, 1);
|
||||
set->cs_flags = CPU_SET_ROOT | CPU_SET_RDONLY;
|
||||
set->cs_domain = &domainset0;
|
||||
cpuset_zero = set;
|
||||
@ -2281,7 +2281,7 @@ DB_SHOW_COMMAND(cpusets, db_show_cpusets)
|
||||
|
||||
LIST_FOREACH(set, &cpuset_ids, cs_link) {
|
||||
db_printf("set=%p id=%-6u ref=%-6d flags=0x%04x parent id=%d\n",
|
||||
set, set->cs_id, set->cs_ref, set->cs_flags,
|
||||
set, set->cs_id, refcount_load(&set->cs_ref), set->cs_flags,
|
||||
(set->cs_parent != NULL) ? set->cs_parent->cs_id : 0);
|
||||
db_printf(" cpu mask=");
|
||||
ddb_display_cpuset(&set->cs_mask);
|
||||
|
Loading…
Reference in New Issue
Block a user