[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20081027113621.GA5631@elte.hu>
Date: Mon, 27 Oct 2008 12:36:21 +0100
From: Ingo Molnar <mingo@...e.hu>
To: Mike Travis <travis@....com>
Cc: Andi Kleen <andi@...stfloor.org>, Pavel Machek <pavel@...e.cz>,
Rusty Russell <rusty@...tcorp.com.au>,
Andrew Morton <akpm@...ux-foundation.org>,
Thomas Gleixner <tglx@...utronix.de>,
Jack Steiner <steiner@....com>,
"H. Peter Anvin" <hpa@...or.com>,
Richard Purdie <rpurdie@...ys.net>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/1] SGI X86 UV: Provide a System Activity Indicator
driver
* Mike Travis <travis@....com> wrote:
> > The idle thread always has pid 0. So if the timer sees
> > current->pid == 0 it interrupted idle.
that's still hacky as it hardcodes the idle == pid-0 assumption.
Please use the idle_cpu() function of the scheduler instead.
Ingo
--
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