Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linux
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martyn Welch
linux
Commits
2a8f55b1
Commit
2a8f55b1
authored
14 years ago
by
Thomas Gleixner
Browse files
Options
Downloads
Patches
Plain Diff
mn10300: Use generic show_interrupts()
Signed-off-by:
Thomas Gleixner
<
tglx@linutronix.de
>
parent
232f1d85
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
arch/mn10300/Kconfig
+1
-0
1 addition, 0 deletions
arch/mn10300/Kconfig
arch/mn10300/kernel/irq.c
+10
-58
10 additions, 58 deletions
arch/mn10300/kernel/irq.c
with
11 additions
and
58 deletions
arch/mn10300/Kconfig
+
1
−
0
View file @
2a8f55b1
...
...
@@ -3,6 +3,7 @@ config MN10300
select HAVE_OPROFILE
select HAVE_GENERIC_HARDIRQS
select GENERIC_HARDIRQS_NO_DEPRECATED
select GENERIC_IRQ_SHOW
select HAVE_ARCH_TRACEHOOK
select HAVE_ARCH_KGDB
...
...
This diff is collapsed.
Click to expand it.
arch/mn10300/kernel/irq.c
+
10
−
58
View file @
2a8f55b1
...
...
@@ -335,68 +335,20 @@ asmlinkage void do_IRQ(void)
/*
* Display interrupt management information through /proc/interrupts
*/
int
show_interrupts
(
struct
seq_file
*
p
,
void
*
v
)
int
arch_
show_interrupts
(
struct
seq_file
*
p
,
int
prec
)
{
int
i
=
*
(
loff_t
*
)
v
,
j
,
cpu
;
struct
irqaction
*
action
;
unsigned
long
flags
;
switch
(
i
)
{
/* display column title bar naming CPUs */
case
0
:
seq_printf
(
p
,
" "
);
for
(
j
=
0
;
j
<
NR_CPUS
;
j
++
)
if
(
cpu_online
(
j
))
seq_printf
(
p
,
"CPU%d "
,
j
);
seq_putc
(
p
,
'\n'
);
break
;
/* display information rows, one per active CPU */
case
1
...
NR_IRQS
-
1
:
raw_spin_lock_irqsave
(
&
irq_desc
[
i
].
lock
,
flags
);
action
=
irq_desc
[
i
].
action
;
if
(
action
)
{
seq_printf
(
p
,
"%3d: "
,
i
);
for_each_present_cpu
(
cpu
)
seq_printf
(
p
,
"%10u "
,
kstat_irqs_cpu
(
i
,
cpu
));
if
(
i
<
NR_CPU_IRQS
)
seq_printf
(
p
,
" %14s.%u"
,
irq_desc
[
i
].
irq_data
.
chip
->
name
,
(
GxICR
(
i
)
&
GxICR_LEVEL
)
>>
GxICR_LEVEL_SHIFT
);
else
seq_printf
(
p
,
" %14s"
,
irq_desc
[
i
].
irq_data
.
chip
->
name
);
seq_printf
(
p
,
" %s"
,
action
->
name
);
for
(
action
=
action
->
next
;
action
;
action
=
action
->
next
)
seq_printf
(
p
,
", %s"
,
action
->
name
);
seq_putc
(
p
,
'\n'
);
}
raw_spin_unlock_irqrestore
(
&
irq_desc
[
i
].
lock
,
flags
);
break
;
/* polish off with NMI and error counters */
case
NR_IRQS
:
#ifdef CONFIG_MN10300_WD_TIMER
seq_printf
(
p
,
"NMI: "
);
for
(
j
=
0
;
j
<
NR_CPUS
;
j
++
)
if
(
cpu_online
(
j
))
seq_printf
(
p
,
"%10u "
,
nmi_count
(
j
));
seq_putc
(
p
,
'\n'
);
#endif
int
j
;
seq_printf
(
p
,
"ERR: %10u
\n
"
,
atomic_read
(
&
irq_err_count
));
break
;
}
seq_printf
(
p
,
"%*s: "
,
prec
,
"NMI"
);
for
(
j
=
0
;
j
<
NR_CPUS
;
j
++
)
if
(
cpu_online
(
j
))
seq_printf
(
p
,
"%10u "
,
nmi_count
(
j
));
seq_putc
(
p
,
'\n'
);
#endif
seq_printf
(
p
,
"%*s: "
,
prec
,
"ERR"
);
seq_printf
(
p
,
"%10u
\n
"
,
atomic_read
(
&
irq_err_count
));
return
0
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment