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
4fa04665
Commit
4fa04665
authored
Oct 08, 2010
by
Russell King
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-russell' of
git://codeaurora.org/quic/kernel/dwalker/linux-msm
into devel-stable
parents
552dc340
846afbd1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
arch/arm/common/gic.c
arch/arm/common/gic.c
+0
-14
No files found.
arch/arm/common/gic.c
View file @
4fa04665
...
...
@@ -67,25 +67,11 @@ static inline unsigned int gic_irq(unsigned int irq)
/*
* Routines to acknowledge, disable and enable interrupts
*
* Linux assumes that when we're done with an interrupt we need to
* unmask it, in the same way we need to unmask an interrupt when
* we first enable it.
*
* The GIC has a separate notion of "end of interrupt" to re-enable
* an interrupt after handling, in order to support hardware
* prioritisation.
*
* We can make the GIC behave in the way that Linux expects by making
* our "acknowledge" routine disable the interrupt, then mark it as
* complete.
*/
static
void
gic_ack_irq
(
unsigned
int
irq
)
{
u32
mask
=
1
<<
(
irq
%
32
);
spin_lock
(
&
irq_controller_lock
);
writel
(
mask
,
gic_dist_base
(
irq
)
+
GIC_DIST_ENABLE_CLEAR
+
(
gic_irq
(
irq
)
/
32
)
*
4
);
writel
(
gic_irq
(
irq
),
gic_cpu_base
(
irq
)
+
GIC_CPU_EOI
);
spin_unlock
(
&
irq_controller_lock
);
}
...
...
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