History

sched/topology: Remove SD_SERIALIZE degeneration special case

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.

Valentin Schneider committed 6 years ago

Commit ab65afb1 parent 6f349811 file · +2 −4Browse files

Unified · Split

kernel/sched/topology.c+2−4
@@ -183,11 +183,9 @@ sd_parent_degenerate(struct sched_domain *sd, struct sched_domain *parent) · 182 unmodified lines
183183 return 0;
184184
185185 /* 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)
187187 pflags &= ~(SD_DEGENERATE_GROUPS_MASK | SD_PREFER_SIBLING);
188− if (nr_node_ids == 1)
189− pflags &= ~SD_SERIALIZE;
190− }
188+
191189 if (~cflags & pflags)
192190 return 0;
193191

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t