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
f93d4594
Commit
f93d4594
authored
Aug 21, 2002
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Since irq_exit() now deals with softirqs, irq_enter and irq_exit
must be located at the top level of the interrupt handler.
parent
01561776
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
arch/arm/kernel/irq.c
arch/arm/kernel/irq.c
+2
-11
No files found.
arch/arm/kernel/irq.c
View file @
f93d4594
...
...
@@ -217,14 +217,11 @@ do_simple_IRQ(unsigned int irq, struct irqdesc *desc, struct pt_regs *regs)
desc
->
triggered
=
1
;
irq_enter
();
kstat
.
irqs
[
cpu
][
irq
]
++
;
action
=
desc
->
action
;
if
(
action
)
__do_irq
(
irq
,
desc
->
action
,
regs
);
irq_exit
();
}
/*
...
...
@@ -256,7 +253,6 @@ do_edge_IRQ(unsigned int irq, struct irqdesc *desc, struct pt_regs *regs)
*/
desc
->
running
=
1
;
irq_enter
();
kstat
.
irqs
[
cpu
][
irq
]
++
;
do
{
...
...
@@ -274,8 +270,6 @@ do_edge_IRQ(unsigned int irq, struct irqdesc *desc, struct pt_regs *regs)
__do_irq
(
irq
,
action
,
regs
);
}
while
(
desc
->
pending
);
irq_exit
();
desc
->
running
=
0
;
/*
...
...
@@ -311,7 +305,6 @@ do_level_IRQ(unsigned int irq, struct irqdesc *desc, struct pt_regs *regs)
desc
->
chip
->
ack
(
irq
);
if
(
likely
(
desc
->
enabled
))
{
irq_enter
();
kstat
.
irqs
[
cpu
][
irq
]
++
;
/*
...
...
@@ -325,7 +318,6 @@ do_level_IRQ(unsigned int irq, struct irqdesc *desc, struct pt_regs *regs)
!
check_irq_lock
(
desc
,
irq
,
regs
)))
desc
->
chip
->
unmask
(
irq
);
}
irq_exit
();
}
}
...
...
@@ -345,12 +337,11 @@ asmlinkage void asm_do_IRQ(int irq, struct pt_regs *regs)
if
(
irq
>=
NR_IRQS
)
desc
=
&
bad_irq_desc
;
irq_enter
();
spin_lock
(
&
irq_controller_lock
);
desc
->
handle
(
irq
,
desc
,
regs
);
spin_unlock
(
&
irq_controller_lock
);
if
(
softirq_pending
(
smp_processor_id
()))
do_softirq
();
irq_exit
();
}
void
__set_irq_handler
(
unsigned
int
irq
,
irq_handler_t
handle
,
int
is_chained
)
...
...
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