Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
a611e51e
Commit
a611e51e
authored
Jan 18, 2004
by
Andrew Morton
Committed by
Linus Torvalds
Jan 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sn: More klgraph.c clean up
From: Pat Gefre <pfg@sgi.com> More klgraph.c clean up Remove is_specified
parent
2bc43c92
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
18 deletions
+6
-18
arch/ia64/sn/io/sgi_io_sim.c
arch/ia64/sn/io/sgi_io_sim.c
+0
-10
arch/ia64/sn/io/sn2/klgraph.c
arch/ia64/sn/io/sn2/klgraph.c
+6
-8
No files found.
arch/ia64/sn/io/sgi_io_sim.c
View file @
a611e51e
...
...
@@ -17,16 +17,6 @@
#include <asm/sn/sn_private.h>
cpuid_t
master_procid
;
char
arg_maxnodes
[
4
];
/*
* Return non-zero if the given variable was specified
*/
int
is_specified
(
char
*
s
)
{
return
(
strlen
(
s
)
!=
0
);
}
/*
* Routines provided by ml/SN/promif.c.
...
...
arch/ia64/sn/io/sn2/klgraph.c
View file @
a611e51e
...
...
@@ -31,7 +31,6 @@
extern
char
arg_maxnodes
[];
void
mark_cpuvertex_as_cpu
(
vertex_hdl_t
vhdl
,
cpuid_t
cpuid
);
int
is_specified
(
char
*
);
/* ARGSUSED */
...
...
@@ -125,7 +124,6 @@ klhwg_add_xbow(cnodeid_t cnode, nasid_t nasid)
vertex_hdl_t
xbow_v
,
hubv
;
/*REFERENCED*/
graph_error_t
err
;
extern
int
is_specified
(
char
*
s
);
if
((
brd
=
find_lboard
((
lboard_t
*
)
KL_CONFIG_INFO
(
nasid
),
KLTYPE_IOBRICK_XBOW
))
==
NULL
)
return
;
...
...
@@ -149,7 +147,7 @@ klhwg_add_xbow(cnodeid_t cnode, nasid_t nasid)
hub_cnode
=
NASID_TO_COMPACT_NODEID
(
hub_nasid
);
if
(
is_specified
(
arg_maxnodes
)
&&
hub_cnode
==
INVALID_CNODEID
)
{
if
(
hub_cnode
==
INVALID_CNODEID
)
{
continue
;
}
...
...
@@ -340,7 +338,7 @@ klhwg_connect_one_router(vertex_hdl_t hwgraph_root, lboard_t *brd,
rc
=
hwgraph_traverse
(
hwgraph_root
,
path_buffer
,
&
router_hndl
);
if
(
rc
!=
GRAPH_SUCCESS
&&
is_specified
(
arg_maxnodes
)
)
if
(
rc
!=
GRAPH_SUCCESS
)
return
;
if
(
rc
!=
GRAPH_SUCCESS
)
...
...
@@ -365,7 +363,7 @@ klhwg_connect_one_router(vertex_hdl_t hwgraph_root, lboard_t *brd,
port
));
continue
;
}
if
(
is_specified
(
arg_maxnodes
)
&&
NASID_TO_COMPACT_NODEID
(
router
->
rou_port
[
port
].
port_nasid
)
if
(
NASID_TO_COMPACT_NODEID
(
router
->
rou_port
[
port
].
port_nasid
)
==
INVALID_CNODEID
)
{
continue
;
}
...
...
@@ -380,7 +378,7 @@ klhwg_connect_one_router(vertex_hdl_t hwgraph_root, lboard_t *brd,
rc
=
hwgraph_traverse
(
hwgraph_root
,
dest_path
,
&
dest_hndl
);
if
(
rc
!=
GRAPH_SUCCESS
)
{
if
(
is_specified
(
arg_maxnodes
)
&&
KL_CONFIG_DUPLICATE_BOARD
(
dest_brd
))
if
(
KL_CONFIG_DUPLICATE_BOARD
(
dest_brd
))
continue
;
printk
(
"Can't find router: %s"
,
dest_path
);
return
;
...
...
@@ -466,7 +464,7 @@ klhwg_connect_hubs(vertex_hdl_t hwgraph_root)
continue
;
/* Port not active */
}
if
(
is_specified
(
arg_maxnodes
)
&&
NASID_TO_COMPACT_NODEID
(
hub
->
hub_port
[
port
].
port_nasid
)
==
INVALID_CNODEID
)
if
(
NASID_TO_COMPACT_NODEID
(
hub
->
hub_port
[
port
].
port_nasid
)
==
INVALID_CNODEID
)
continue
;
/* Generate a hardware graph path for this board. */
...
...
@@ -486,7 +484,7 @@ klhwg_connect_hubs(vertex_hdl_t hwgraph_root)
rc
=
hwgraph_traverse
(
hwgraph_root
,
dest_path
,
&
dest_hndl
);
if
(
rc
!=
GRAPH_SUCCESS
)
{
if
(
is_specified
(
arg_maxnodes
)
&&
KL_CONFIG_DUPLICATE_BOARD
(
dest_brd
))
if
(
KL_CONFIG_DUPLICATE_BOARD
(
dest_brd
))
continue
;
printk
(
"Can't find board: %s"
,
dest_path
);
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment