Re: OOPS: 2.6.16-rc6 cpufreq_conservative
From: Linus Torvalds
Date: Sun Mar 19 2006 - 17:52:40 EST
On Sun, 19 Mar 2006, Andrew Morton wrote:
>
> Also, optimise any_online_cpu() out of existence on CONFIG_SMP=n.
>
> This function seems inefficient. Can't we simply AND the two masks, then use
> find_first_bit()?
Then you'd need to generate a temporary cpumask thing. Not a big deal as
long as it fits in an "unsigned long", but since the online-cpu thing is
likely dense in any relevant cpu-mask, I actually think "any_online_cpu()"
as it stands now is likely to be simpler/more efficient than generating a
temporary mask.
Linus
-
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/