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
0877d662
Commit
0877d662
authored
Feb 07, 2011
by
Thomas Gleixner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
genirq: Use handle_irq_event() in the spurious poll code
Signed-off-by:
Thomas Gleixner
<
tglx@linutronix.de
>
parent
849f061c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
kernel/irq/spurious.c
kernel/irq/spurious.c
+9
-12
No files found.
kernel/irq/spurious.c
View file @
0877d662
...
...
@@ -56,13 +56,14 @@ bool irq_wait_for_poll(struct irq_desc *desc)
#endif
}
/*
* Recovery handler for misrouted interrupts.
*/
static
int
try_one_irq
(
int
irq
,
struct
irq_desc
*
desc
,
bool
force
)
{
irqreturn_t
ret
=
IRQ_NONE
;
struct
irqaction
*
action
;
int
ok
=
0
;
raw_spin_lock
(
&
desc
->
lock
);
...
...
@@ -96,21 +97,17 @@ static int try_one_irq(int irq, struct irq_desc *desc, bool force)
goto
out
;
}
/*
Honour the normal IRQ locking and m
ark it poll in progress */
desc
->
status
|=
IRQ_
INPROGRESS
|
IRQ_
POLL_INPROGRESS
;
/*
M
ark it poll in progress */
desc
->
status
|=
IRQ_POLL_INPROGRESS
;
do
{
desc
->
status
&=
~
IRQ_PENDING
;
raw_spin_unlock
(
&
desc
->
lock
);
if
(
handle_IRQ_event
(
irq
,
action
)
!=
IRQ_NONE
)
ok
=
1
;
raw_spin_lock
(
&
desc
->
lock
);
if
(
handle_irq_event
(
desc
)
==
IRQ_HANDLED
)
ret
=
IRQ_HANDLED
;
action
=
desc
->
action
;
}
while
((
desc
->
status
&
IRQ_PENDING
)
&&
action
);
desc
->
status
&=
~
(
IRQ_INPROGRESS
|
IRQ_POLL_INPROGRESS
);
}
while
((
desc
->
status
&
IRQ_PENDING
)
&&
action
);
desc
->
status
&=
~
IRQ_POLL_INPROGRESS
;
out:
raw_spin_unlock
(
&
desc
->
lock
);
return
ok
;
return
ret
==
IRQ_HANDLED
;
}
static
int
misrouted_irq
(
int
irq
)
...
...
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