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
nexedi
linux
Commits
147f464a
Commit
147f464a
authored
Oct 09, 2003
by
Jesse Barnes
Committed by
David Mosberger
Oct 09, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ia64: fix SN2 interrupt allocation
Patch from Christoph. Fixes interrupt allocation code for sn2.
parent
5b0d0e74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
20 deletions
+21
-20
arch/ia64/sn/io/sn2/ml_SN_intr.c
arch/ia64/sn/io/sn2/ml_SN_intr.c
+21
-20
No files found.
arch/ia64/sn/io/sn2/ml_SN_intr.c
View file @
147f464a
...
...
@@ -285,7 +285,6 @@ static cpuid_t intr_cpu_choose_node(void)
cpuid_t
intr_heuristic
(
vertex_hdl_t
dev
,
int
req_bit
,
int
*
resp_bit
)
{
cpuid_t
cpuid
;
cpuid_t
candidate
=
CPU_NONE
;
vertex_hdl_t
pconn_vhdl
;
pcibr_soft_t
pcibr_soft
;
int
bit
;
...
...
@@ -293,30 +292,32 @@ cpuid_t intr_heuristic(vertex_hdl_t dev, int req_bit, int *resp_bit)
/* XXX: gross layering violation.. */
if
(
hwgraph_edge_get
(
dev
,
EDGE_LBL_PCI
,
&
pconn_vhdl
)
==
GRAPH_SUCCESS
)
{
pcibr_soft
=
pcibr_soft_get
(
pconn_vhdl
);
if
(
pcibr_soft
&&
pcibr_soft
->
bsi_err_intr
)
candidate
=
((
hub_intr_t
)
pcibr_soft
->
bsi_err_intr
)
->
i_cpuid
;
}
if
(
candidate
!=
CPU_NONE
)
{
/*
* The cpu was chosen already when we assigned
* the error interrupt.
*/
bit
=
intr_reserve_level
(
candidate
,
req_bit
);
if
(
bit
>=
0
)
{
*
resp_bit
=
bit
;
return
candidate
;
if
(
pcibr_soft
&&
pcibr_soft
->
bsi_err_intr
)
{
/*
* The cpu was chosen already when we assigned
* the error interrupt.
*/
cpuid
=
((
hub_intr_t
)
pcibr_soft
->
bsi_err_intr
)
->
i_cpuid
;
goto
done
;
}
printk
(
"Cannot target interrupt to target node (%ld).
\n
"
,
candidate
);
return
CPU_NONE
;
}
/*
* Need to choose one. Try the controlling c-brick first.
*/
cpuid
=
intr_cpu_choose_from_node
(
master_node_get
(
dev
));
if
(
cpuid
!=
CPU_NONE
)
return
cpuid
;
return
intr_cpu_choose_node
();
if
(
cpuid
==
CPU_NONE
)
cpuid
=
intr_cpu_choose_node
();
done:
if
(
cpuid
!=
CPU_NONE
)
{
bit
=
intr_reserve_level
(
cpuid
,
req_bit
);
if
(
bit
>=
0
)
{
*
resp_bit
=
bit
;
return
cpuid
;
}
}
printk
(
"Cannot target interrupt to target cpu (%ld).
\n
"
,
cpuid
);
return
CPU_NONE
;
}
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