mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
Merge branch 'linus' into irq/core
Bring in upstream updates for patches which depend on them
This commit is contained in:
commit
e50226b4b8
421 changed files with 3234 additions and 2011 deletions
|
|
@ -62,7 +62,7 @@ static int its_get_pci_alias(struct pci_dev *pdev, u16 alias, void *data)
|
|||
|
||||
dev_alias->dev_id = alias;
|
||||
if (pdev != dev_alias->pdev)
|
||||
dev_alias->count += its_pci_msi_vec_count(dev_alias->pdev);
|
||||
dev_alias->count += its_pci_msi_vec_count(pdev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -722,6 +722,9 @@ static unsigned long *its_lpi_alloc_chunks(int nr_irqs, int *base, int *nr_ids)
|
|||
out:
|
||||
spin_unlock(&lpi_lock);
|
||||
|
||||
if (!bitmap)
|
||||
*base = *nr_ids = 0;
|
||||
|
||||
return bitmap;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -320,6 +320,14 @@ static void gic_handle_shared_int(bool chained)
|
|||
intrmask[i] = gic_read(intrmask_reg);
|
||||
pending_reg += gic_reg_step;
|
||||
intrmask_reg += gic_reg_step;
|
||||
|
||||
if (!config_enabled(CONFIG_64BIT) || mips_cm_is64)
|
||||
continue;
|
||||
|
||||
pending[i] |= (u64)gic_read(pending_reg) << 32;
|
||||
intrmask[i] |= (u64)gic_read(intrmask_reg) << 32;
|
||||
pending_reg += gic_reg_step;
|
||||
intrmask_reg += gic_reg_step;
|
||||
}
|
||||
|
||||
bitmap_and(pending, pending, intrmask, gic_shared_intrs);
|
||||
|
|
@ -426,7 +434,7 @@ static int gic_set_affinity(struct irq_data *d, const struct cpumask *cpumask,
|
|||
spin_lock_irqsave(&gic_lock, flags);
|
||||
|
||||
/* Re-route this IRQ */
|
||||
gic_map_to_vpe(irq, cpumask_first(&tmp));
|
||||
gic_map_to_vpe(irq, mips_cm_vp_id(cpumask_first(&tmp)));
|
||||
|
||||
/* Update the pcpu_masks */
|
||||
for (i = 0; i < NR_CPUS; i++)
|
||||
|
|
@ -599,7 +607,7 @@ static __init void gic_ipi_init_one(unsigned int intr, int cpu,
|
|||
GIC_SHARED_TO_HWIRQ(intr));
|
||||
int i;
|
||||
|
||||
gic_map_to_vpe(intr, cpu);
|
||||
gic_map_to_vpe(intr, mips_cm_vp_id(cpu));
|
||||
for (i = 0; i < NR_CPUS; i++)
|
||||
clear_bit(intr, pcpu_masks[i].pcpu_mask);
|
||||
set_bit(intr, pcpu_masks[cpu].pcpu_mask);
|
||||
|
|
|
|||
Loading…
Reference in a new issue