From: Jack Steiner Add the GRU hub number to the output of the GRU cch_status & gru_status files (in /proc/sgi_uv/gru). Signed-off-by: Jack Steiner --- drivers/misc/sgi-gru/gruprocfs.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) Index: linux/drivers/misc/sgi-gru/gruprocfs.c =================================================================== --- linux.orig/drivers/misc/sgi-gru/gruprocfs.c 2010-06-09 08:11:42.456084620 -0500 +++ linux/drivers/misc/sgi-gru/gruprocfs.c 2010-06-09 08:11:44.561086699 -0500 @@ -217,18 +217,18 @@ static int gru_seq_show(struct seq_file struct gru_state *gru = GID_TO_GRU(gid); if (gid == 0) { - seq_printf(file, "#%5s%5s%7s%6s%6s%8s%6s%6s\n", "gid", "nid", + seq_printf(file, "#%5s%5s%7s%6s%6s%8s%6s%6s\n", "hub", "gid", "ctx", "cbr", "dsr", "ctx", "cbr", "dsr"); - seq_printf(file, "#%5s%5s%7s%6s%6s%8s%6s%6s\n", "", "", "busy", - "busy", "busy", "free", "free", "free"); + seq_printf(file, "#%5s%5s%7s%6s%6s%8s%6s%6s\n", "", "", "total", + "total", "total", "free", "free", "free"); } if (gru) { ctxfree = GRU_NUM_CCH - gru->gs_active_contexts; cbrfree = hweight64(gru->gs_cbr_map) * GRU_CBR_AU_SIZE; dsrfree = hweight64(gru->gs_dsr_map) * GRU_DSR_AU_BYTES; - seq_printf(file, " %5d%5d%7ld%6ld%6ld%8ld%6ld%6ld\n", - gru->gs_gid, gru->gs_blade_id, GRU_NUM_CCH - ctxfree, - GRU_NUM_CBE - cbrfree, GRU_NUM_DSR_BYTES - dsrfree, + seq_printf(file, " %5d%5d%7d%6d%6d%8ld%6ld%6ld\n", + gru->gs_blade_id, gru->gs_gid, + GRU_NUM_CCH, GRU_NUM_CBE, GRU_NUM_DSR_BYTES, ctxfree, cbrfree, dsrfree); } -- 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/