This patch is in regard to bugme.osdl.org bug 619, link here: http://bugme.osdl.org/show_bug.cgi?id=619 This is the second of two patches to fix this bug. This patch fills in include/linux/topology.h (created in the last patch) with a couple #defines. The patch also creates a generic_hweight64() in include/linux/bitops.h, which we've been lacking for a while. It then uses these new macros in sched.c to ensure that if a node has no CPUs, it is not used in scheduling decisions. [mcd@arrakis src]$ diffstat ~/patches/node_online.patch include/linux/bitops.h | 27 +++++++++++++++++++++++++++ include/linux/topology.h | 7 +++++++ kernel/sched.c | 2 +- 3 files changed, 35 insertions(+), 1 deletion(-) Cheers! -Matt