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
f64305a6
Commit
f64305a6
authored
Nov 29, 2010
by
Lennert Buytenhek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: core irq_data conversion.
Signed-off-by:
Lennert Buytenhek
<
buytenh@secretlab.ca
>
parent
e2a93ecc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
arch/arm/kernel/irq.c
arch/arm/kernel/irq.c
+10
-7
No files found.
arch/arm/kernel/irq.c
View file @
f64305a6
...
@@ -88,7 +88,7 @@ int show_interrupts(struct seq_file *p, void *v)
...
@@ -88,7 +88,7 @@ int show_interrupts(struct seq_file *p, void *v)
seq_printf
(
p
,
"%*d: "
,
prec
,
i
);
seq_printf
(
p
,
"%*d: "
,
prec
,
i
);
for_each_present_cpu
(
cpu
)
for_each_present_cpu
(
cpu
)
seq_printf
(
p
,
"%10u "
,
kstat_irqs_cpu
(
i
,
cpu
));
seq_printf
(
p
,
"%10u "
,
kstat_irqs_cpu
(
i
,
cpu
));
seq_printf
(
p
,
" %10s"
,
desc
->
chip
->
name
?
:
"-"
);
seq_printf
(
p
,
" %10s"
,
desc
->
irq_data
.
chip
->
name
?
:
"-"
);
seq_printf
(
p
,
" %s"
,
action
->
name
);
seq_printf
(
p
,
" %s"
,
action
->
name
);
for
(
action
=
action
->
next
;
action
;
action
=
action
->
next
)
for
(
action
=
action
->
next
;
action
;
action
=
action
->
next
)
seq_printf
(
p
,
", %s"
,
action
->
name
);
seq_printf
(
p
,
", %s"
,
action
->
name
);
...
@@ -181,10 +181,11 @@ int __init arch_probe_nr_irqs(void)
...
@@ -181,10 +181,11 @@ int __init arch_probe_nr_irqs(void)
static
void
route_irq
(
struct
irq_desc
*
desc
,
unsigned
int
irq
,
unsigned
int
cpu
)
static
void
route_irq
(
struct
irq_desc
*
desc
,
unsigned
int
irq
,
unsigned
int
cpu
)
{
{
pr_debug
(
"IRQ%u: moving from cpu%u to cpu%u
\n
"
,
irq
,
desc
->
node
,
cpu
);
pr_debug
(
"IRQ%u: moving from cpu%u to cpu%u
\n
"
,
irq
,
desc
->
irq_data
.
node
,
cpu
);
raw_spin_lock_irq
(
&
desc
->
lock
);
raw_spin_lock_irq
(
&
desc
->
lock
);
desc
->
chip
->
set_affinity
(
irq
,
cpumask_of
(
cpu
));
desc
->
irq_data
.
chip
->
irq_set_affinity
(
&
desc
->
irq_data
,
cpumask_of
(
cpu
),
false
);
raw_spin_unlock_irq
(
&
desc
->
lock
);
raw_spin_unlock_irq
(
&
desc
->
lock
);
}
}
...
@@ -199,16 +200,18 @@ void migrate_irqs(void)
...
@@ -199,16 +200,18 @@ void migrate_irqs(void)
struct
irq_desc
*
desc
;
struct
irq_desc
*
desc
;
for_each_irq_desc
(
i
,
desc
)
{
for_each_irq_desc
(
i
,
desc
)
{
if
(
desc
->
node
==
cpu
)
{
struct
irq_data
*
d
=
&
desc
->
irq_data
;
unsigned
int
newcpu
=
cpumask_any_and
(
desc
->
affinity
,
if
(
d
->
node
==
cpu
)
{
unsigned
int
newcpu
=
cpumask_any_and
(
d
->
affinity
,
cpu_online_mask
);
cpu_online_mask
);
if
(
newcpu
>=
nr_cpu_ids
)
{
if
(
newcpu
>=
nr_cpu_ids
)
{
if
(
printk_ratelimit
())
if
(
printk_ratelimit
())
printk
(
KERN_INFO
"IRQ%u no longer affine to CPU%u
\n
"
,
printk
(
KERN_INFO
"IRQ%u no longer affine to CPU%u
\n
"
,
i
,
cpu
);
i
,
cpu
);
cpumask_setall
(
d
esc
->
affinity
);
cpumask_setall
(
d
->
affinity
);
newcpu
=
cpumask_any_and
(
d
esc
->
affinity
,
newcpu
=
cpumask_any_and
(
d
->
affinity
,
cpu_online_mask
);
cpu_online_mask
);
}
}
...
...
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