irqchip: phytium2500: fixed interrupts are concentrated in one cpu

This commit is contained in:
Fuhai Wang 2021-08-14 16:51:20 +08:00
parent 17d3eab83a
commit b830c19f64
2 changed files with 2 additions and 6 deletions

View File

@ -1181,9 +1181,7 @@ static int its_cpumask_select(struct its_device *its_dev,
}
cpu = cpumask_any_and(mask_val, cpu_mask);
if ((cpu > cpus) && (cpu < (cpus + skt_cpu_cnt[skt_id]))) {
cpus = cpu;
}
cpus = cpus + cpu % skt_cpu_cnt[skt_id];
return cpus;
}

View File

@ -1293,9 +1293,7 @@ static int gic_cpumask_select(struct irq_data *d, const struct cpumask *mask_val
}
cpu = cpumask_any_and(mask_val, cpu_online_mask);
if ((cpu > cpus) && (cpu < (cpus + skt_cpu_cnt[irq_skt]))) {
cpus = cpu;
}
cpus = cpus + cpu % skt_cpu_cnt[irq_skt];
return cpus;
}