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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- OOPS: 2.6.16-rc6 cpufreq_conservative
- From: Parag Warudkar <[email protected]>
- Re: OOPS: 2.6.16-rc6 cpufreq_conservative
- From: Linus Torvalds <[email protected]>
- Re: OOPS: 2.6.16-rc6 cpufreq_conservative
- From: Andrew Morton <[email protected]>
- Re: OOPS: 2.6.16-rc6 cpufreq_conservative
- From: Linus Torvalds <[email protected]>
- Re: OOPS: 2.6.16-rc6 cpufreq_conservative
- From: Linus Torvalds <[email protected]>
- Re: OOPS: 2.6.16-rc6 cpufreq_conservative
- From: Linus Torvalds <[email protected]>
- Re: OOPS: 2.6.16-rc6 cpufreq_conservative
- From: Linus Torvalds <[email protected]>
- Re: OOPS: 2.6.16-rc6 cpufreq_conservative
- From: Al Viro <[email protected]>
- Re: OOPS: 2.6.16-rc6 cpufreq_conservative
- From: Linus Torvalds <[email protected]>
- Re: OOPS: 2.6.16-rc6 cpufreq_conservative
- From: Linus Torvalds <[email protected]>
- Re: OOPS: 2.6.16-rc6 cpufreq_conservative
- From: Andrew Morton <[email protected]>
- Re: OOPS: 2.6.16-rc6 cpufreq_conservative
- From: Linus Torvalds <[email protected]>
- Re: OOPS: 2.6.16-rc6 cpufreq_conservative
- From: Andrew Morton <[email protected]>
- OOPS: 2.6.16-rc6 cpufreq_conservative
- Prev by Date: Re: 2.6.16-rc6: known regressions (v2)
- Next by Date: Re: Question regarding to store file system metadata in database
- Previous by thread: Re: OOPS: 2.6.16-rc6 cpufreq_conservative
- Next by thread: Re: OOPS: 2.6.16-rc6 cpufreq_conservative
- Index(es):