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
68f20f43
Commit
68f20f43
authored
Mar 28, 2011
by
Thomas Gleixner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parisc: Use irq_to_desc() in show_interrupts()
Signed-off-by:
Thomas Gleixner
<
tglx@linutronix.de
>
parent
e2f571d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
arch/parisc/kernel/irq.c
arch/parisc/kernel/irq.c
+6
-5
No files found.
arch/parisc/kernel/irq.c
View file @
68f20f43
...
...
@@ -169,10 +169,11 @@ int show_interrupts(struct seq_file *p, void *v)
}
if
(
i
<
NR_IRQS
)
{
struct
irq_desc
*
desc
=
irq_to_desc
(
i
);
struct
irqaction
*
action
;
raw_spin_lock_irqsave
(
&
irq_desc
[
i
].
lock
,
flags
);
action
=
irq_desc
[
i
].
action
;
raw_spin_lock_irqsave
(
&
desc
->
lock
,
flags
);
action
=
desc
->
action
;
if
(
!
action
)
goto
skip
;
seq_printf
(
p
,
"%3d: "
,
i
);
...
...
@@ -183,7 +184,7 @@ int show_interrupts(struct seq_file *p, void *v)
seq_printf
(
p
,
"%10u "
,
kstat_irqs
(
i
));
#endif
seq_printf
(
p
,
" %14s"
,
irq_desc
[
i
].
irq_data
.
chip
->
name
);
seq_printf
(
p
,
" %14s"
,
irq_desc
_get_chip
(
desc
)
->
name
);
#ifndef PARISC_IRQ_CR16_COUNTS
seq_printf
(
p
,
" %s"
,
action
->
name
);
...
...
@@ -215,7 +216,7 @@ int show_interrupts(struct seq_file *p, void *v)
seq_putc
(
p
,
'\n'
);
skip:
raw_spin_unlock_irqrestore
(
&
irq_desc
[
i
].
lock
,
flags
);
raw_spin_unlock_irqrestore
(
&
desc
->
lock
,
flags
);
}
return
0
;
...
...
@@ -233,7 +234,7 @@ int show_interrupts(struct seq_file *p, void *v)
int
cpu_claim_irq
(
unsigned
int
irq
,
struct
irq_chip
*
type
,
void
*
data
)
{
if
(
irq_
desc
[
irq
].
action
)
if
(
irq_
has_action
(
irq
)
)
return
-
EBUSY
;
if
(
irq_get_chip
(
irq
)
!=
&
cpu_interrupt_type
)
return
-
EBUSY
;
...
...
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