[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0610281804370.14100@schroedinger.engr.sgi.com>
Date: Sat, 28 Oct 2006 18:05:02 -0700 (PDT)
From: Christoph Lameter <clameter@....com>
To: "Siddha, Suresh B" <suresh.b.siddha@...el.com>
cc: akpm@...l.org, Peter Williams <pwil3058@...pond.net.au>,
linux-kernel@...r.kernel.org,
Nick Piggin <nickpiggin@...oo.com.au>,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>,
Ingo Molnar <mingo@...e.hu>
Subject: Re: [PATCH 5/7] Move idle stat calculation into rebalance_tick()
On Sat, 28 Oct 2006, Siddha, Suresh B wrote:
> comment needs to be fixed and also please mention that in case of SMT nice,
> nr_running will determine if the processor is idle or not(rather than
> checking for current task is idle)
Ah.. Thanks! Would this be okay?
Index: linux-2.6.19-rc3/kernel/sched.c
===================================================================
--- linux-2.6.19-rc3.orig/kernel/sched.c 2006-10-28 20:00:07.000000000 -0500
+++ linux-2.6.19-rc3/kernel/sched.c 2006-10-28 20:04:08.721364884 -0500
@@ -2869,10 +2869,10 @@ static void rebalance_domains(unsigned l
unsigned long interval;
struct sched_domain *sd;
/*
- * A task is idle if this is the idle queue
- * and we have no runnable task
+ * We are idle if there are no processes running. This
+ * is valid even if we are the idle process (SMT).
*/
- enum idle_type idle = (this_rq->idle && !this_rq->nr_running) ?
+ enum idle_type idle = !this_rq->nr_running ?
SCHED_IDLE : NOT_IDLE;
/* Earliest time when we have to call rebalance_domains again */
unsigned long next_balance = jiffies + 60*HZ;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists