Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus

Pull MIPS fixes from Ralf Baechle:
"Three fixes across arch/mips with the most complex one being the GIC
interrupt fix - at nine lines still not monster. I'm confident this
are the final MIPS patches even if there should go for an rc8"

* 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus:
MIPS: ralink: fix return value check in rt_timer_probe()
MIPS: malta: Fix GIC interrupt offsets
MIPS: Perf: Fix 74K cache map

Changed files
+8 -7
arch
mips
kernel
mti-malta
ralink
+2 -2
arch/mips/kernel/perf_event_mipsxx.c
··· 971 971 [C(LL)] = { 972 972 [C(OP_READ)] = { 973 973 [C(RESULT_ACCESS)] = { 0x1c, CNTR_ODD, P }, 974 - [C(RESULT_MISS)] = { 0x1d, CNTR_EVEN | CNTR_ODD, P }, 974 + [C(RESULT_MISS)] = { 0x1d, CNTR_EVEN, P }, 975 975 }, 976 976 [C(OP_WRITE)] = { 977 977 [C(RESULT_ACCESS)] = { 0x1c, CNTR_ODD, P }, 978 - [C(RESULT_MISS)] = { 0x1d, CNTR_EVEN | CNTR_ODD, P }, 978 + [C(RESULT_MISS)] = { 0x1d, CNTR_EVEN, P }, 979 979 }, 980 980 }, 981 981 [C(ITLB)] = {
+5 -4
arch/mips/mti-malta/malta-int.c
··· 473 473 { 474 474 int cpu; 475 475 476 - for (cpu = 0; cpu < NR_CPUS; cpu++) { 476 + for (cpu = 0; cpu < nr_cpu_ids; cpu++) { 477 477 fill_ipi_map1(gic_resched_int_base, cpu, GIC_CPU_INT1); 478 478 fill_ipi_map1(gic_call_int_base, cpu, GIC_CPU_INT2); 479 479 } ··· 574 574 /* FIXME */ 575 575 int i; 576 576 #if defined(CONFIG_MIPS_MT_SMP) 577 - gic_call_int_base = GIC_NUM_INTRS - NR_CPUS; 578 - gic_resched_int_base = gic_call_int_base - NR_CPUS; 577 + gic_call_int_base = GIC_NUM_INTRS - 578 + (NR_CPUS - nr_cpu_ids) * 2 - nr_cpu_ids; 579 + gic_resched_int_base = gic_call_int_base - nr_cpu_ids; 579 580 fill_ipi_map(); 580 581 #endif 581 582 gic_init(GIC_BASE_ADDR, GIC_ADDRSPACE_SZ, gic_intr_map, ··· 600 599 printk("CPU%d: status register now %08x\n", smp_processor_id(), read_c0_status()); 601 600 write_c0_status(0x1100dc00); 602 601 printk("CPU%d: status register frc %08x\n", smp_processor_id(), read_c0_status()); 603 - for (i = 0; i < NR_CPUS; i++) { 602 + for (i = 0; i < nr_cpu_ids; i++) { 604 603 arch_init_ipiirq(MIPS_GIC_IRQ_BASE + 605 604 GIC_RESCHED_INT(i), &irq_resched); 606 605 arch_init_ipiirq(MIPS_GIC_IRQ_BASE +
+1 -1
arch/mips/ralink/timer.c
··· 126 126 return -ENOENT; 127 127 } 128 128 129 - rt->membase = devm_request_and_ioremap(&pdev->dev, res); 129 + rt->membase = devm_ioremap_resource(&pdev->dev, res); 130 130 if (IS_ERR(rt->membase)) 131 131 return PTR_ERR(rt->membase); 132 132