[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1264479836.3601.113.camel@pasglop>
Date: Tue, 26 Jan 2010 15:23:56 +1100
From: Benjamin Herrenschmidt <benh@...nel.crashing.org>
To: Joel Schopp <jschopp@...tin.ibm.com>
Cc: Michael Neuling <mikey@...ling.org>, Ingo Molnar <mingo@...e.hu>,
ego@...ibm.com, linuxppc-dev@...ts.ozlabs.org,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/2] powerpc: implement arch_scale_smt_power for Power7
On Mon, 2010-01-25 at 11:50 -0600, Joel Schopp wrote:
> > Look at the cputhreads.h implementation ... Today we only support
> > power-of-two numbers of threads.
> >
> I've run 3 threads using cpu hotplug to offline 1 of the 4. It's
> certainly a stupid idea, but there you go.
Oh, you mean you need to use the actual online count ? In which case,
yes, you do indeed need to be a bit more careful... In this case though,
you're probably better off special casing "3" :-)
Cheers,
Ben.
--
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