x86: make set_cpu_sibling_map nonstatic
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>
This commit is contained in:
committed by
Ingo Molnar
parent
a355352b97
commit
1452207689
@@ -228,7 +228,7 @@ cpumask_t cpu_coregroup_map(int cpu)
|
|||||||
/* representing cpus for which sibling maps can be computed */
|
/* representing cpus for which sibling maps can be computed */
|
||||||
static cpumask_t cpu_sibling_setup_map;
|
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;
|
int i;
|
||||||
struct cpuinfo_x86 *c = &cpu_data(cpu);
|
struct cpuinfo_x86 *c = &cpu_data(cpu);
|
||||||
|
@@ -22,6 +22,9 @@ struct smp_ops {
|
|||||||
int wait);
|
int wait);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* Globals due to paravirt */
|
||||||
|
extern void set_cpu_sibling_map(int cpu);
|
||||||
|
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
extern struct smp_ops smp_ops;
|
extern struct smp_ops smp_ops;
|
||||||
|
|
||||||
|
@@ -35,9 +35,6 @@ extern void cpu_uninit(void);
|
|||||||
extern void remove_siblinginfo(int cpu);
|
extern void remove_siblinginfo(int cpu);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Globals due to paravirt */
|
|
||||||
extern void set_cpu_sibling_map(int cpu);
|
|
||||||
|
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
#ifndef CONFIG_PARAVIRT
|
#ifndef CONFIG_PARAVIRT
|
||||||
#define startup_ipi_hook(phys_apicid, start_eip, start_esp) do { } while (0)
|
#define startup_ipi_hook(phys_apicid, start_eip, start_esp) do { } while (0)
|
||||||
|
Reference in New Issue
Block a user