Re: [PATCH 2/2] powerpc: implement arch_scale_smt_power for Power7
From: Benjamin Herrenschmidt
Date: Sat Jan 23 2010 - 22:03:43 EST
On Wed, 2010-01-20 at 16:09 -0600, Joel Schopp wrote:
> I can turn that into a conditional branch (case statement) with a shift
> for the common 1,2,4 cases which should cover all procs available today
> falling back to a divide for any theoretical future processors that do
> other numbers of threads.
Look at the cputhreads.h implementation ... Today we only support
power-of-two numbers of threads.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/