Skip to content

Commit

Permalink
x86: make set_cpu_sibling_map nonstatic
Browse files Browse the repository at this point in the history
And move its extern definition to smp.h, the common header

Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Glauber Costa authored and Ingo Molnar committed Apr 17, 2008
1 parent a355352 commit 1452207
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion arch/x86/kernel/smpboot_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ cpumask_t cpu_coregroup_map(int cpu)
/* representing cpus for which sibling maps can be computed */
static cpumask_t cpu_sibling_setup_map;

static inline void set_cpu_sibling_map(int cpu)
void __cpuinit set_cpu_sibling_map(int cpu)
{
int i;
struct cpuinfo_x86 *c = &cpu_data(cpu);
Expand Down
3 changes: 3 additions & 0 deletions include/asm-x86/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ struct smp_ops {
int wait);
};

/* Globals due to paravirt */
extern void set_cpu_sibling_map(int cpu);

#ifdef CONFIG_SMP
extern struct smp_ops smp_ops;

Expand Down
3 changes: 0 additions & 3 deletions include/asm-x86/smp_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ extern void cpu_uninit(void);
extern void remove_siblinginfo(int cpu);
#endif

/* Globals due to paravirt */
extern void set_cpu_sibling_map(int cpu);

#ifdef CONFIG_SMP
#ifndef CONFIG_PARAVIRT
#define startup_ipi_hook(phys_apicid, start_eip, start_esp) do { } while (0)
Expand Down

0 comments on commit 1452207

Please sign in to comment.