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
c9c8b0d8
Commit
c9c8b0d8
authored
Mar 09, 2004
by
Pat Gefre
Committed by
David Mosberger
Mar 09, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ia64: Altix affinity fix
parent
cc57b27f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
arch/ia64/sn/io/sn2/shub_intr.c
arch/ia64/sn/io/sn2/shub_intr.c
+4
-5
arch/ia64/sn/kernel/irq.c
arch/ia64/sn/kernel/irq.c
+5
-1
No files found.
arch/ia64/sn/io/sn2/shub_intr.c
View file @
c9c8b0d8
...
...
@@ -200,7 +200,6 @@ sn_shub_redirect_intr(pcibr_intr_t intr, unsigned long cpu)
int
cpuphys
,
slice
;
nasid_t
nasid
;
unsigned
long
xtalk_addr
;
void
*
bridge
=
intr
->
bi_soft
->
bs_base
;
int
irq
;
int
i
;
int
old_cpu
;
...
...
@@ -237,13 +236,13 @@ sn_shub_redirect_intr(pcibr_intr_t intr, unsigned long cpu)
for
(
bit
=
0
;
bit
<
8
;
bit
++
)
{
if
(
intr
->
bi_ibits
&
(
1
<<
bit
)
)
{
/* Disable interrupts. */
pcireg_intr_enable_bit_clr
(
bridge
,
bit
);
pcireg_intr_enable_bit_clr
(
intr
->
bi_soft
,
bit
);
/* Reset Host address (Interrupt destination) */
pcireg_intr_addr_addr_set
(
bridge
,
bit
,
xtalk_addr
);
pcireg_intr_addr_addr_set
(
intr
->
bi_soft
,
bit
,
xtalk_addr
);
/* Enable interrupt */
pcireg_intr_enable_bit_set
(
bridge
,
bit
);
pcireg_intr_enable_bit_set
(
intr
->
bi_soft
,
bit
);
/* Force an interrupt, just in case. */
pcireg_force_intr_set
(
bridge
,
bit
);
pcireg_force_intr_set
(
intr
->
bi_soft
,
bit
);
}
}
irq
=
intr
->
bi_irq
;
...
...
arch/ia64/sn/kernel/irq.c
View file @
c9c8b0d8
...
...
@@ -15,6 +15,7 @@
#include <linux/interrupt.h>
#include <linux/slab.h>
#include <linux/bootmem.h>
#include <linux/cpumask.h>
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/sn/sgi.h>
...
...
@@ -118,10 +119,11 @@ sn_end_irq(unsigned int irq)
}
static
void
sn_set_affinity_irq
(
unsigned
int
irq
,
unsigned
long
cpu
)
sn_set_affinity_irq
(
unsigned
int
irq
,
cpumask_t
mask
)
{
#ifdef CONFIG_SMP
int
redir
=
0
;
int
cpu
;
struct
sn_intr_list_t
*
p
=
sn_intr_list
[
irq
];
pcibr_intr_t
intr
;
extern
void
sn_shub_redirect_intr
(
pcibr_intr_t
intr
,
unsigned
long
cpu
);
...
...
@@ -135,7 +137,9 @@ sn_set_affinity_irq(unsigned int irq, unsigned long cpu)
if
(
intr
==
NULL
)
return
;
cpu
=
first_cpu
(
mask
);
sn_shub_redirect_intr
(
intr
,
cpu
);
irq
=
irq
&
0xff
;
/* strip off redirect bit, if someone stuck it on. */
(
void
)
set_irq_affinity_info
(
irq
,
cpu_physical_id
(
intr
->
bi_cpu
),
redir
);
#endif
/* CONFIG_SMP */
}
...
...
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