[PATCH] ppc64: Fix incorrect initialization of hash table on somepSeries

From: Benjamin Herrenschmidt
Date: Thu Sep 30 2004 - 00:44:50 EST


Hi !

The hash table wasn't fully initialized on some pSeries that had
the workaround for no batching. Please apply.

Signed-off-by: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>

===== arch/ppc64/mm/hash_native.c 1.18 vs edited =====
--- 1.18/arch/ppc64/mm/hash_native.c 2004-09-22 14:40:30 +10:00
+++ edited/arch/ppc64/mm/hash_native.c 2004-09-30 15:34:39 +10:00
@@ -407,13 +407,13 @@
model = get_property(root, "model", NULL);
if (!strcmp(model, "CHRP IBM,9076-N81")) {
of_node_put(root);
- return;
+ goto bail;
}
of_node_put(root);
}
#endif /* CONFIG_PPC_PSERIES */

ppc_md.flush_hash_range = native_flush_hash_range;
-
+ bail:
htab_finish_init();
}


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/