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.
Showing the changes to kernel (1 of 1 file). Show all
Unified · Split
| @@ -183,11 +183,9 @@ sd_parent_degenerate(struct sched_domain *sd, struct sched_domain *parent) · 182 unmodified lines | |||
| 183 | return 0; | 183 | return 0; |
| 184 | 184 | ||
| 185 | /* Flags needing groups don't count if only 1 group in parent */ | 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 | pflags &= ~(SD_DEGENERATE_GROUPS_MASK | SD_PREFER_SIBLING); | 187 | pflags &= ~(SD_DEGENERATE_GROUPS_MASK | SD_PREFER_SIBLING); |
| 188 | if (nr_node_ids == 1) | 188 | |
| 189 | pflags &= ~SD_SERIALIZE; | ||
| 190 | } | ||
| 191 | if (~cflags & pflags) | 189 | if (~cflags & pflags) |
| 192 | return 0; | 190 | return 0; |
| 193 | 191 | ||