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
4bf447d6
Commit
4bf447d6
authored
Feb 13, 2006
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Pass correct ino to sun4v_intr_*().
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
a615fea4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
arch/sparc64/kernel/irq.c
arch/sparc64/kernel/irq.c
+11
-8
No files found.
arch/sparc64/kernel/irq.c
View file @
4bf447d6
...
...
@@ -152,10 +152,11 @@ void enable_irq(unsigned int irq)
preempt_disable
();
if
(
tlb_type
==
hypervisor
)
{
unsigned
int
ino
=
__irq_ino
(
irq
);
int
cpu
=
hard_smp_processor_id
();
sun4v_intr_settarget
(
i
rq
,
cpu
);
sun4v_intr_setenabled
(
i
rq
,
HV_INTR_ENABLED
);
sun4v_intr_settarget
(
i
no
,
cpu
);
sun4v_intr_setenabled
(
i
no
,
HV_INTR_ENABLED
);
}
else
{
if
(
tlb_type
==
cheetah
||
tlb_type
==
cheetah_plus
)
{
unsigned
long
ver
;
...
...
@@ -214,7 +215,9 @@ void disable_irq(unsigned int irq)
imap
=
bucket
->
imap
;
if
(
imap
!=
0UL
)
{
if
(
tlb_type
==
hypervisor
)
{
sun4v_intr_setenabled
(
irq
,
HV_INTR_DISABLED
);
unsigned
int
ino
=
__irq_ino
(
irq
);
sun4v_intr_setenabled
(
ino
,
HV_INTR_DISABLED
);
}
else
{
u32
tmp
;
...
...
@@ -643,9 +646,9 @@ static void process_bucket(int irq, struct ino_bucket *bp, struct pt_regs *regs)
}
if
(
bp
->
pil
!=
0
)
{
if
(
tlb_type
==
hypervisor
)
{
unsigned
int
i
rq
=
__irq
(
bp
);
unsigned
int
i
no
=
__irq_ino
(
bp
);
sun4v_intr_setstate
(
i
rq
,
HV_INTR_STATE_IDLE
);
sun4v_intr_setstate
(
i
no
,
HV_INTR_STATE_IDLE
);
}
else
{
upa_writel
(
ICLR_IDLE
,
bp
->
iclr
);
/* Test and add entropy */
...
...
@@ -791,10 +794,10 @@ static int retarget_one_irq(struct irqaction *p, int goal_cpu)
}
if
(
tlb_type
==
hypervisor
)
{
unsigned
int
i
rq
=
__irq
(
bucket
);
unsigned
int
i
no
=
__irq_ino
(
bucket
);
sun4v_intr_settarget
(
i
rq
,
goal_cpu
);
sun4v_intr_setenabled
(
i
rq
,
HV_INTR_ENABLED
);
sun4v_intr_settarget
(
i
no
,
goal_cpu
);
sun4v_intr_setenabled
(
i
no
,
HV_INTR_ENABLED
);
}
else
{
unsigned
int
tid
;
...
...
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