Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Bricked
flo
Commits
433c9c67
Commit
433c9c67
authored
14 years ago
by
Thomas Gleixner
Browse files
Options
Download
Email Patches
Plain Diff
powerpc: Use generic show_interrupts()
Signed-off-by:
Thomas Gleixner
<
tglx@linutronix.de
>
parent
ec775d0e
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
60 deletions
+3
-60
arch/powerpc/Kconfig
arch/powerpc/Kconfig
+2
-0
arch/powerpc/kernel/irq.c
arch/powerpc/kernel/irq.c
+1
-60
No files found.
arch/powerpc/Kconfig
View file @
433c9c67
...
...
@@ -139,6 +139,8 @@ config PPC
select HAVE_SPARSE_IRQ
select IRQ_PER_CPU
select GENERIC_HARDIRQS_NO_DEPRECATED
select GENERIC_IRQ_SHOW
select GENERIC_IRQ_SHOW_LEVEL
config EARLY_PRINTK
bool
...
...
This diff is collapsed.
Click to expand it.
arch/powerpc/kernel/irq.c
View file @
433c9c67
...
...
@@ -195,7 +195,7 @@ notrace void arch_local_irq_restore(unsigned long en)
EXPORT_SYMBOL
(
arch_local_irq_restore
);
#endif
/* CONFIG_PPC64 */
static
int
show_other
_interrupts
(
struct
seq_file
*
p
,
int
prec
)
int
arch_show
_interrupts
(
struct
seq_file
*
p
,
int
prec
)
{
int
j
;
...
...
@@ -231,65 +231,6 @@ static int show_other_interrupts(struct seq_file *p, int prec)
return
0
;
}
int
show_interrupts
(
struct
seq_file
*
p
,
void
*
v
)
{
unsigned
long
flags
,
any_count
=
0
;
int
i
=
*
(
loff_t
*
)
v
,
j
,
prec
;
struct
irqaction
*
action
;
struct
irq_desc
*
desc
;
struct
irq_chip
*
chip
;
if
(
i
>
nr_irqs
)
return
0
;
for
(
prec
=
3
,
j
=
1000
;
prec
<
10
&&
j
<=
nr_irqs
;
++
prec
)
j
*=
10
;
if
(
i
==
nr_irqs
)
return
show_other_interrupts
(
p
,
prec
);
/* print header */
if
(
i
==
0
)
{
seq_printf
(
p
,
"%*s"
,
prec
+
8
,
""
);
for_each_online_cpu
(
j
)
seq_printf
(
p
,
"CPU%-8d"
,
j
);
seq_putc
(
p
,
'\n'
);
}
desc
=
irq_to_desc
(
i
);
if
(
!
desc
)
return
0
;
raw_spin_lock_irqsave
(
&
desc
->
lock
,
flags
);
for_each_online_cpu
(
j
)
any_count
|=
kstat_irqs_cpu
(
i
,
j
);
action
=
desc
->
action
;
if
(
!
action
&&
!
any_count
)
goto
out
;
seq_printf
(
p
,
"%*d: "
,
prec
,
i
);
for_each_online_cpu
(
j
)
seq_printf
(
p
,
"%10u "
,
kstat_irqs_cpu
(
i
,
j
));
chip
=
get_irq_desc_chip
(
desc
);
if
(
chip
)
seq_printf
(
p
,
" %-16s"
,
chip
->
name
);
else
seq_printf
(
p
,
" %-16s"
,
"None"
);
seq_printf
(
p
,
" %-8s"
,
(
irqd_is_level_type
(
&
desc
->
irq_data
)
?
"Level"
:
"Edge"
);
if
(
action
)
{
seq_printf
(
p
,
" %s"
,
action
->
name
);
while
((
action
=
action
->
next
)
!=
NULL
)
seq_printf
(
p
,
", %s"
,
action
->
name
);
}
seq_putc
(
p
,
'\n'
);
out:
raw_spin_unlock_irqrestore
(
&
desc
->
lock
,
flags
);
return
0
;
}
/*
* /proc/stat helpers
*/
...
...
This diff is collapsed.
Click to expand it.
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