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
00be8a06
Commit
00be8a06
authored
Feb 18, 2004
by
Pat Gefre
Committed by
David Mosberger
Feb 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ia64: on SN2, use the pda to count interrupts
parent
d00085d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
arch/ia64/sn/io/sn2/ml_SN_intr.c
arch/ia64/sn/io/sn2/ml_SN_intr.c
+3
-3
No files found.
arch/ia64/sn/io/sn2/ml_SN_intr.c
View file @
00be8a06
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
#include <asm/sal.h>
#include <asm/sal.h>
#include <asm/sn/sn_sal.h>
#include <asm/sn/sn_sal.h>
#include <asm/sn/sn2/shub_mmr.h>
#include <asm/sn/sn2/shub_mmr.h>
#include <asm/sn/pda.h>
extern
irqpda_t
*
irqpdaindr
;
extern
irqpda_t
*
irqpdaindr
;
extern
cnodeid_t
master_node_get
(
vertex_hdl_t
vhdl
);
extern
cnodeid_t
master_node_get
(
vertex_hdl_t
vhdl
);
...
@@ -216,7 +217,6 @@ static cpuid_t intr_cpu_choose_from_node(cnodeid_t cnode)
...
@@ -216,7 +217,6 @@ static cpuid_t intr_cpu_choose_from_node(cnodeid_t cnode)
{
{
cpuid_t
cpu
,
best_cpu
=
CPU_NONE
;
cpuid_t
cpu
,
best_cpu
=
CPU_NONE
;
int
slice
,
min_count
=
1000
;
int
slice
,
min_count
=
1000
;
irqpda_t
*
irqs
;
for
(
slice
=
CPUS_PER_NODE
-
1
;
slice
>=
0
;
slice
--
)
{
for
(
slice
=
CPUS_PER_NODE
-
1
;
slice
>=
0
;
slice
--
)
{
int
intrs
;
int
intrs
;
...
@@ -227,8 +227,7 @@ static cpuid_t intr_cpu_choose_from_node(cnodeid_t cnode)
...
@@ -227,8 +227,7 @@ static cpuid_t intr_cpu_choose_from_node(cnodeid_t cnode)
if
(
!
cpu_online
(
cpu
))
if
(
!
cpu_online
(
cpu
))
continue
;
continue
;
irqs
=
irqpdaindr
;
intrs
=
pdacpu
(
cpu
)
->
sn_num_irqs
;
intrs
=
irqs
->
num_irq_used
;
if
(
min_count
>
intrs
)
{
if
(
min_count
>
intrs
)
{
min_count
=
intrs
;
min_count
=
intrs
;
...
@@ -243,6 +242,7 @@ static cpuid_t intr_cpu_choose_from_node(cnodeid_t cnode)
...
@@ -243,6 +242,7 @@ static cpuid_t intr_cpu_choose_from_node(cnodeid_t cnode)
}
}
}
}
}
}
pdacpu
(
best_cpu
)
->
sn_num_irqs
++
;
return
best_cpu
;
return
best_cpu
;
}
}
...
...
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