Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/arch/x86/xen/smp.c b/arch/x86/xen/smp.c
- index 8648438..8ee16f3 100644
- --- a/arch/x86/xen/smp.c
- +++ b/arch/x86/xen/smp.c
- @@ -55,6 +55,31 @@ static irqreturn_t xen_call_function_interrupt(int irq, void *dev_id);
- static irqreturn_t xen_call_function_single_interrupt(int irq, void *dev_id);
- static irqreturn_t xen_irq_work_interrupt(int irq, void *dev_id);
- +const struct cpumask *xen_pcpu_sched_domain_mask(int cpu)
- +{
- + return cpu_online_mask;
- +}
- +
- +static inline int xen_pcpu_flags(void)
- +{
- + return SD_SHARE_CPUCAPACITY | SD_SHARE_PKG_RESOURCES;
- +}
- +
- +static struct sched_domain_topology_level xen_sched_domain_topology[] = {
- + { xen_pcpu_sched_domain_mask, SD_INIT_NAME(PCPU) },
- + { NULL, },
- +};
- +
- +static void xen_set_sched_topology(void)
- +{
- + set_sched_topology(xen_sched_domain_topology);
- +}
- +
- +//6025 unsigned long __weak arch_scale_cpu_capacity(struct sched_domain *sd, int cpu)
- +//6026 {
- +//6027 return default_scale_cpu_capacity(sd, cpu);
- +//6028 }
- +
- /*
- * Reschedule call back.
- */
- @@ -335,6 +360,8 @@ static void __init xen_smp_prepare_cpus(unsigned int max_cpus)
- }
- set_cpu_sibling_map(0);
- + xen_set_sched_topology();
- +
- if (xen_smp_intr_init(0))
- BUG();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement