APM is special: what it *really* wants to know is if only CPU 0 is
online (this test will almost certainly fail miserably if the single
online CPU is CPU 1, which previously wasn't possible).
I'll check with the APM maintainer what guarantees he needs: we may
actually need to grab to cpu control lock here. Anyway apparently I
broke something else in APM.
(BTW, in general, we use magic to avoid locks around num_online_cpus()
et al: we make changes then wait for everyone to voluntarily schedule
before exposing it).
Cheers,
Rusty.
-- Anyone who quotes me in their sig is an idiot. -- Rusty Russell. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/