[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20081027180616.GG3046@elte.hu>
Date: Mon, 27 Oct 2008 19:06:16 +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: Update SCIR driver to use idle_cpu
function
* Mike Travis <travis@....com> wrote:
> Subject: SGI x86 UV: Update SCIR driver to use idle_cpu function
>
> > Please send the cpu_idle() cleanup patch separately.
>
> Change UV heartbeat function to use idle_cpu to determine cpu's
> "idleness". Realign uv_hub definitions.
>
> Signed-of-by: Mike Travis <travis@....com>
> ---
> arch/x86/include/asm/uv/uv_hub.h | 26 +++++++++++++-------------
> arch/x86/kernel/genx2apic_uv_x.c | 4 ++--
> 2 files changed, 15 insertions(+), 15 deletions(-)
applied to tip/x86/uv, thanks Mike!
one small comment:
> + /* is this cpu idle? */
> + if (idle_cpu(smp_processor_id()))
> bits &= ~SCIR_CPU_ACTIVITY;
were you ever to run an -rt kernel on that hardware, this would
produce a warning. raw_smp_processor_id() would be more appropriate i
guess.
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