A cosmetic change - don't output empty <flags>.
This commit is contained in:
parent
c606b778d1
commit
611daf7e62
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210117
@ -2656,16 +2656,16 @@ sysctl_kern_sched_topology_spec_internal(struct sbuf *sb, struct cpu_group *cg,
|
||||
}
|
||||
sbuf_printf(sb, "</cpu>\n");
|
||||
|
||||
sbuf_printf(sb, "%*s <flags>", indent, "");
|
||||
if (cg->cg_flags != 0) {
|
||||
sbuf_printf(sb, "%*s <flags>", indent, "");
|
||||
if ((cg->cg_flags & CG_FLAG_HTT) != 0)
|
||||
sbuf_printf(sb, "<flag name=\"HTT\">HTT group</flag>");
|
||||
if ((cg->cg_flags & CG_FLAG_THREAD) != 0)
|
||||
sbuf_printf(sb, "<flag name=\"THREAD\">THREAD group</flag>");
|
||||
if ((cg->cg_flags & CG_FLAG_SMT) != 0)
|
||||
sbuf_printf(sb, "<flag name=\"SMT\">SMT group</flag>");
|
||||
sbuf_printf(sb, "</flags>\n");
|
||||
}
|
||||
sbuf_printf(sb, "</flags>\n");
|
||||
|
||||
if (cg->cg_children > 0) {
|
||||
sbuf_printf(sb, "%*s <children>\n", indent, "");
|
||||
|
Loading…
Reference in New Issue
Block a user