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
097e98b4
Commit
097e98b4
authored
Mar 25, 2011
by
Thomas Gleixner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ia64: Convert migrate_platform_irqs() to new irq chip functions
Signed-off-by:
Thomas Gleixner
<
tglx@linutronix.de
>
parent
28a283aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
arch/ia64/kernel/smpboot.c
arch/ia64/kernel/smpboot.c
+7
-7
No files found.
arch/ia64/kernel/smpboot.c
View file @
097e98b4
...
...
@@ -677,7 +677,7 @@ extern void fixup_irqs(void);
int
migrate_platform_irqs
(
unsigned
int
cpu
)
{
int
new_cpei_cpu
;
struct
irq_d
esc
*
desc
=
NULL
;
struct
irq_d
ata
*
data
=
NULL
;
const
struct
cpumask
*
mask
;
int
retval
=
0
;
...
...
@@ -693,20 +693,20 @@ int migrate_platform_irqs(unsigned int cpu)
new_cpei_cpu
=
any_online_cpu
(
cpu_online_map
);
mask
=
cpumask_of
(
new_cpei_cpu
);
set_cpei_target_cpu
(
new_cpei_cpu
);
d
esc
=
irq_desc
+
ia64_cpe_irq
;
d
ata
=
irq_get_irq_data
(
ia64_cpe_irq
)
;
/*
* Switch for now, immediately, we need to do fake intr
* as other interrupts, but need to study CPEI behaviour with
* polling before making changes.
*/
if
(
d
esc
)
{
d
esc
->
chip
->
disable
(
ia64_cpe_irq
);
d
esc
->
chip
->
set_affinity
(
ia64_cpe_irq
,
mask
);
d
esc
->
chip
->
enable
(
ia64_cpe_irq
);
if
(
d
ata
&&
data
->
chip
)
{
d
ata
->
chip
->
irq_disable
(
data
);
d
ata
->
chip
->
irq_set_affinity
(
data
,
mask
,
false
);
d
ata
->
chip
->
irq_enable
(
data
);
printk
(
"Re-targetting CPEI to cpu %d
\n
"
,
new_cpei_cpu
);
}
}
if
(
!
d
esc
)
{
if
(
!
d
ata
)
{
printk
(
"Unable to retarget CPEI, offline cpu [%d] failed
\n
"
,
cpu
);
retval
=
-
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