1 Aug 2004 01:02
Re: [PATCH][2.6] first/next_cpu returns values > NR_CPUS
Zwane Mwaikambo <zwane <at> linuxpower.ca>
2004-07-31 23:02:58 GMT
2004-07-31 23:02:58 GMT
On Sat, 31 Jul 2004, William Lee Irwin III wrote: > On Sat, Jul 31, 2004 at 04:52:18PM -0400, Zwane Mwaikambo wrote: > > The following caused some fireworks whilst merging i386 cpu hotplug. > > any_online_cpu(0x2) returns 32 on i386 if we're forced to continue past > > the only set bit due to the additional find_first_bit in the > > find_next_bit i386 implementation. Not wanting to change current > > behaviour in the bitops primitives and since the NR_CPUS thing is a > > cpumask issue, i've opted to fix next_cpu() and first_cpu() instead. > > Signed-off-by: Zwane Mwaikambo <zwane <at> fsmlabs.com> > > This might save a couple of lines of code. Nice, i'd prefer that.
RSS Feed