mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-03 11:13:56 +08:00
paravirt: make siblingmap functions visible
Paravirt implementations need to set the sibling map on new cpus. Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
This commit is contained in:
parent
724faa89cc
commit
c70df74376
@ -308,8 +308,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
|
void set_cpu_sibling_map(int cpu)
|
||||||
set_cpu_sibling_map(int cpu)
|
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
struct cpuinfo_x86 *c = cpu_data;
|
struct cpuinfo_x86 *c = cpu_data;
|
||||||
@ -1144,8 +1143,7 @@ void __init native_smp_prepare_boot_cpu(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_HOTPLUG_CPU
|
#ifdef CONFIG_HOTPLUG_CPU
|
||||||
static void
|
void remove_siblinginfo(int cpu)
|
||||||
remove_siblinginfo(int cpu)
|
|
||||||
{
|
{
|
||||||
int sibling;
|
int sibling;
|
||||||
struct cpuinfo_x86 *c = cpu_data;
|
struct cpuinfo_x86 *c = cpu_data;
|
||||||
|
@ -43,9 +43,12 @@ extern u8 x86_cpu_to_apicid[];
|
|||||||
|
|
||||||
#define cpu_physical_id(cpu) x86_cpu_to_apicid[cpu]
|
#define cpu_physical_id(cpu) x86_cpu_to_apicid[cpu]
|
||||||
|
|
||||||
|
extern void set_cpu_sibling_map(int cpu);
|
||||||
|
|
||||||
#ifdef CONFIG_HOTPLUG_CPU
|
#ifdef CONFIG_HOTPLUG_CPU
|
||||||
extern void cpu_exit_clear(void);
|
extern void cpu_exit_clear(void);
|
||||||
extern void cpu_uninit(void);
|
extern void cpu_uninit(void);
|
||||||
|
extern void remove_siblinginfo(int cpu);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct smp_ops
|
struct smp_ops
|
||||||
|
Loading…
Reference in New Issue
Block a user