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
d9cadb0d
Commit
d9cadb0d
authored
May 07, 2008
by
Russell King
Committed by
Russell King
May 07, 2008
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'irq-fix' of
git://www.modarm9.com/gitsrc/pub/people/ukleinek/linux-2.6.git
parents
592eb999
21f20b69
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
arch/arm/mach-ns9xxx/irq.c
arch/arm/mach-ns9xxx/irq.c
+15
-7
No files found.
arch/arm/mach-ns9xxx/irq.c
View file @
d9cadb0d
...
...
@@ -62,7 +62,7 @@ static struct irq_chip ns9xxx_chip = {
#if 0
#define handle_irq handle_level_irq
#else
void
handle_prio_irq
(
unsigned
int
irq
,
struct
irq_desc
*
desc
)
static
void
handle_prio_irq
(
unsigned
int
irq
,
struct
irq_desc
*
desc
)
{
unsigned
int
cpu
=
smp_processor_id
();
struct
irqaction
*
action
;
...
...
@@ -70,27 +70,35 @@ void handle_prio_irq(unsigned int irq, struct irq_desc *desc)
spin_lock
(
&
desc
->
lock
);
if
(
unlikely
(
desc
->
status
&
IRQ_INPROGRESS
))
goto
out_unlock
;
BUG_ON
(
desc
->
status
&
IRQ_INPROGRESS
);
desc
->
status
&=
~
(
IRQ_REPLAY
|
IRQ_WAITING
);
kstat_cpu
(
cpu
).
irqs
[
irq
]
++
;
action
=
desc
->
action
;
if
(
unlikely
(
!
action
||
(
desc
->
status
&
IRQ_DISABLED
)))
goto
out_
unloc
k
;
goto
out_
mas
k
;
desc
->
status
|=
IRQ_INPROGRESS
;
spin_unlock
(
&
desc
->
lock
);
action_ret
=
handle_IRQ_event
(
irq
,
action
);
/* XXX: There is no direct way to access noirqdebug, so check
* unconditionally for spurious irqs...
* Maybe this function should go to kernel/irq/chip.c? */
note_interrupt
(
irq
,
desc
,
action_ret
);
spin_lock
(
&
desc
->
lock
);
desc
->
status
&=
~
IRQ_INPROGRESS
;
if
(
!
(
desc
->
status
&
IRQ_DISABLED
)
&&
desc
->
chip
->
ack
)
if
(
desc
->
status
&
IRQ_DISABLED
)
out_mask:
desc
->
chip
->
mask
(
irq
);
/* ack unconditionally to unmask lower prio irqs */
desc
->
chip
->
ack
(
irq
);
out_unlock:
spin_unlock
(
&
desc
->
lock
);
}
#define handle_irq handle_prio_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