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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martyn Welch
linux
Commits
097e98b4
Commit
097e98b4
authored
14 years ago
by
Thomas Gleixner
Browse files
Options
Downloads
Patches
Plain Diff
ia64: Convert migrate_platform_irqs() to new irq chip functions
Signed-off-by:
Thomas Gleixner
<
tglx@linutronix.de
>
parent
28a283aa
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
arch/ia64/kernel/smpboot.c
+7
-7
7 additions, 7 deletions
arch/ia64/kernel/smpboot.c
with
7 additions
and
7 deletions
arch/ia64/kernel/smpboot.c
+
7
−
7
View file @
097e98b4
...
@@ -677,7 +677,7 @@ extern void fixup_irqs(void);
...
@@ -677,7 +677,7 @@ extern void fixup_irqs(void);
int
migrate_platform_irqs
(
unsigned
int
cpu
)
int
migrate_platform_irqs
(
unsigned
int
cpu
)
{
{
int
new_cpei_cpu
;
int
new_cpei_cpu
;
struct
irq_d
esc
*
desc
=
NULL
;
struct
irq_d
ata
*
data
=
NULL
;
const
struct
cpumask
*
mask
;
const
struct
cpumask
*
mask
;
int
retval
=
0
;
int
retval
=
0
;
...
@@ -693,20 +693,20 @@ int migrate_platform_irqs(unsigned int cpu)
...
@@ -693,20 +693,20 @@ int migrate_platform_irqs(unsigned int cpu)
new_cpei_cpu
=
any_online_cpu
(
cpu_online_map
);
new_cpei_cpu
=
any_online_cpu
(
cpu_online_map
);
mask
=
cpumask_of
(
new_cpei_cpu
);
mask
=
cpumask_of
(
new_cpei_cpu
);
set_cpei_target_cpu
(
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
* Switch for now, immediately, we need to do fake intr
* as other interrupts, but need to study CPEI behaviour with
* as other interrupts, but need to study CPEI behaviour with
* polling before making changes.
* polling before making changes.
*/
*/
if
(
d
esc
)
{
if
(
d
ata
&&
data
->
chip
)
{
d
esc
->
chip
->
disable
(
ia64_cpe_irq
);
d
ata
->
chip
->
irq_
disable
(
data
);
d
esc
->
chip
->
set_affinity
(
ia64_cpe_irq
,
mask
);
d
ata
->
chip
->
irq_
set_affinity
(
data
,
mask
,
false
);
d
esc
->
chip
->
enable
(
ia64_cpe_irq
);
d
ata
->
chip
->
irq_
enable
(
data
);
printk
(
"Re-targetting CPEI to cpu %d
\n
"
,
new_cpei_cpu
);
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
);
printk
(
"Unable to retarget CPEI, offline cpu [%d] failed
\n
"
,
cpu
);
retval
=
-
EBUSY
;
retval
=
-
EBUSY
;
}
}
...
...
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