On Tuesday 24 June 2008 02:58:44 Mike Travis wrote:
You're right. It assumes cpu is < NR_CPUS. Hmm, I have no idea what's going
on. nr_cpu_ids (ignore that it's a horrible name for a bad idea) should be
fine to test against.
Vegard's analysis is flawed: just because cpu is offline, it still must be <
nr_cpu_ids, which is based on possible cpus. Unless something crazy is
happening, but a quick grep doesn't reveal anyone manipulating nr_cpu_ids.
If changing this fixes the bug, something else is badly wrong...
Rusty.
--