Commit aee5612f authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] sn: Use numionodes

From: Pat Gefre <pfg@sgi.com>

Use numionodes
parent 5a867c03
......@@ -449,7 +449,7 @@ klhwg_connect_hubs(vertex_hdl_t hwgraph_root)
graph_error_t rc;
int port;
for (cnode = 0; cnode < numnodes; cnode++) {
for (cnode = 0; cnode < numionodes; cnode++) {
nasid = COMPACT_TO_NASID_NODEID(cnode);
brd = find_lboard((lboard_t *)KL_CONFIG_INFO(nasid), KLTYPE_SNIA);
......@@ -621,11 +621,11 @@ klhwg_add_all_nodes(vertex_hdl_t hwgraph_root)
{
cnodeid_t cnode;
for (cnode = 0; cnode < numnodes; cnode++) {
for (cnode = 0; cnode < numionodes; cnode++) {
klhwg_add_node(hwgraph_root, cnode);
}
for (cnode = 0; cnode < numnodes; cnode++) {
for (cnode = 0; cnode < numionodes; cnode++) {
klhwg_add_xbow(cnode, cnodeid_to_nasid(cnode));
}
......
......@@ -679,7 +679,7 @@ init_all_devices(void)
cnodeid_t cnodeid, active;
active = 0;
for (cnodeid = 0; cnodeid < numnodes; cnodeid++) {
for (cnodeid = 0; cnodeid < numionodes; cnodeid++) {
DBG("init_all_devices: Calling io_init_node() for cnode %d\n", cnodeid);
io_init_node(cnodeid);
......
......@@ -207,6 +207,7 @@ typedef struct cpuinfo_s {
extern void xswitch_vertex_init(vertex_hdl_t xswitch);
extern xtalk_provider_t hub_provider;
extern int numionodes;
/* du.c */
int ducons_write(char *buf, int len);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment