[IA64-SGI] fix for-loop in sn_hwperf_geoid_to_cnode()
[linux-2.6.git] / arch / ia64 / sn / kernel / sn2 / sn_hwperf.c
index 6ff34fc..d917afa 100644 (file)
@@ -110,7 +110,11 @@ static int sn_hwperf_geoid_to_cnode(char *location)
        if (sn_hwperf_location_to_bpos(location, &rack, &bay, &slot, &slab))
                return -1;
 
-       for_each_node(cnode) {
+       /*
+        * FIXME: replace with cleaner for_each_XXX macro which addresses
+        * both compute and IO nodes once ACPI3.0 is available.
+        */
+       for (cnode = 0; cnode < num_cnodes; cnode++) {
                geoid = cnodeid_get_geoid(cnode);
                module_id = geo_module(geoid);
                this_rack = MODULE_GET_RACK(module_id);