Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 245601
b: refs/heads/master
c: 7142d17
h: refs/heads/master
i:
  245599: 1a6c568
v: v3
  • Loading branch information
Hillf Danton authored and Ingo Molnar committed May 6, 2011
1 parent 61bc648 commit 17f3e8c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4934a4d3d3fa775601a9f1b35cc0e2aa93f81355
refs/heads/master: 7142d17e8f935fa842e9f6eece2281b6d41625d6
8 changes: 5 additions & 3 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -6807,7 +6807,7 @@ __setup("isolcpus=", isolated_cpu_setup);
*/
static int find_next_best_node(int node, nodemask_t *used_nodes)
{
int i, n, val, min_val, best_node = 0;
int i, n, val, min_val, best_node = -1;

min_val = INT_MAX;

Expand All @@ -6831,7 +6831,8 @@ static int find_next_best_node(int node, nodemask_t *used_nodes)
}
}

node_set(best_node, *used_nodes);
if (best_node != -1)
node_set(best_node, *used_nodes);
return best_node;
}

Expand All @@ -6857,7 +6858,8 @@ static void sched_domain_node_span(int node, struct cpumask *span)

for (i = 1; i < SD_NODES_PER_DOMAIN; i++) {
int next_node = find_next_best_node(node, &used_nodes);

if (next_node < 0)
break;
cpumask_or(span, span, cpumask_of_node(next_node));
}
}
Expand Down

0 comments on commit 17f3e8c

Please sign in to comment.