lkml.org 
[lkml]   [2012]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH 2/2] autonuma: fix typo in blind balance
From
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++;
--

\
 
 \ /
  Last update: 2012-03-19 14:03    [W:0.033 / U:0.408 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site