public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] autonuma: fix typo in blind balance
@ 2012-03-19 12:59 Hillf Danton
  2012-03-19 17:35 ` Andrea Arcangeli
  0 siblings, 1 reply; 2+ messages in thread
From: Hillf Danton @ 2012-03-19 12:59 UTC (permalink / raw)
  To: Andrea Arcangeli; +Cc: LKML, Hillf Danton

Since it is certain that nid is not online in each round of for-loop,
it is replaced with given node id.

Signed-off-by: Hillf Danton <dhillf@gmail.com>
---

--- a/kernel/sched/numa.c	Sat Mar 17 11:01:40 2012
+++ b/kernel/sched/numa.c	Mon Mar 19 20:04:00 2012
@@ -34,7 +34,7 @@ static int autonuma_balance_blind(struct
 		selected_nid = cpu_nid;

 		nr_mm_max = 0;
-		for_each_cpu_and(cpu, cpumask_of_node(nid), allowed) {
+		for_each_cpu_and(cpu, cpumask_of_node(cpu_nid), allowed) {
 			struct rq *rq = cpu_rq(cpu);
 			if (rq->curr->mm == mm)
 				nr_mm_max++;
--

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-19 17:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-19 12:59 [PATCH 2/2] autonuma: fix typo in blind balance Hillf Danton
2012-03-19 17:35 ` Andrea Arcangeli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox