Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
328386d7
Commit
328386d7
authored
Jan 28, 2009
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86, smp: refactor ->wake_cpu
- remove macro wrappers Signed-off-by:
Ingo Molnar
<
mingo@elte.hu
>
parent
1f75ed0c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
9 deletions
+4
-9
arch/x86/include/asm/mach-default/mach_apic.h
arch/x86/include/asm/mach-default/mach_apic.h
+0
-2
arch/x86/include/asm/mach-generic/mach_apic.h
arch/x86/include/asm/mach-generic/mach_apic.h
+0
-2
arch/x86/kernel/setup.c
arch/x86/kernel/setup.c
+2
-3
arch/x86/kernel/smpboot.c
arch/x86/kernel/smpboot.c
+2
-2
No files found.
arch/x86/include/asm/mach-default/mach_apic.h
View file @
328386d7
...
...
@@ -19,10 +19,8 @@ static inline const struct cpumask *default_target_cpus(void)
#ifdef CONFIG_X86_64
#include <asm/genapic.h>
#define read_apic_id() (apic->get_apic_id(apic_read(APIC_ID)))
#define wakeup_secondary_cpu (apic->wakeup_cpu)
extern
void
default_setup_apic_routing
(
void
);
#else
#define wakeup_secondary_cpu wakeup_secondary_cpu_via_init
/*
* Set up the logical destination ID.
*
...
...
arch/x86/include/asm/mach-generic/mach_apic.h
View file @
328386d7
...
...
@@ -3,8 +3,6 @@
#include <asm/genapic.h>
#define wakeup_secondary_cpu (apic->wakeup_cpu)
extern
void
generic_bigsmp_probe
(
void
);
#endif
/* _ASM_X86_MACH_GENERIC_MACH_APIC_H */
arch/x86/kernel/setup.c
View file @
328386d7
...
...
@@ -589,9 +589,8 @@ early_param("elfcorehdr", setup_elfcorehdr);
static
int
__init
default_update_genapic
(
void
)
{
#ifdef CONFIG_X86_SMP
# if defined(CONFIG_X86_GENERICARCH) || defined(CONFIG_X86_64
)
if
(
!
apic
->
wakeup_cpu
)
apic
->
wakeup_cpu
=
wakeup_secondary_cpu_via_init
;
# endif
#endif
return
0
;
...
...
arch/x86/kernel/smpboot.c
View file @
328386d7
...
...
@@ -750,7 +750,7 @@ static int __cpuinit do_boot_cpu(int apicid, int cpu)
/*
* NOTE - on most systems this is a PHYSICAL apic ID, but on multiquad
* (ie clustered apic addressing mode), this is a LOGICAL apic ID.
* Returns zero if CPU booted OK, else error code from
wakeup_secondary
_cpu.
* Returns zero if CPU booted OK, else error code from
->wakeup
_cpu.
*/
{
unsigned
long
boot_error
=
0
;
...
...
@@ -841,7 +841,7 @@ do_rest:
/*
* Starting actual IPI sequence...
*/
boot_error
=
wakeup_secondary
_cpu
(
apicid
,
start_ip
);
boot_error
=
apic
->
wakeup
_cpu
(
apicid
,
start_ip
);
if
(
!
boot_error
)
{
/*
...
...
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