On Wed, Mar 10, 2010 at 06:10:43PM +0100, Martin Vogt wrote: > > Hello list, > > currently my numa library reports two cpus more than I actuall have: The code is broken anyways, it should be looking for the highest CPU number, otherwise it would not handle CPU hotplug. Something like int max = 0; ... int n; if (sscanf(dirent->d_name, "cpu%d", &n) == 1 && n > max) max = n; ... use max -Andi -- To unsubscribe from this list: send the line "unsubscribe linux-numa" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html