If there is only a single NUMA node in the system, the only NUMA topology level that will be generated will be NODE (identity distance), which doesn't have SD_SERIALIZE. This means we don't need this special case in sd_parent_degenerate(), as having the NODE level "naturally" covers it. Thus, remove it.
Unified · Split
| @@ -183,11 +183,9 @@ sd_parent_degenerate(struct sched_domain *sd, struct sched_domain *parent) · 182 unmodified lines | ||
| 183 | 183 | return 0; |
| 184 | 184 | |
| 185 | 185 | /* Flags needing groups don't count if only 1 group in parent */ |
| 186 | − if (parent->groups == parent->groups->next) { | |
| 186 | + if (parent->groups == parent->groups->next) | |
| 187 | 187 | pflags &= ~(SD_DEGENERATE_GROUPS_MASK | SD_PREFER_SIBLING); |
| 188 | − if (nr_node_ids == 1) | |
| 189 | − pflags &= ~SD_SERIALIZE; | |
| 190 | − } | |
| 188 | + | |
| 191 | 189 | if (~cflags & pflags) |
| 192 | 190 | return 0; |
| 193 | 191 | |