diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2016-09-20 17:20:32 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2016-09-20 17:20:32 -0400 |
commit | 464b5847e61085f81bb99ce48eb427a0dc7617dc (patch) | |
tree | 805c97855a9a13c06910687bbbbe3eb7bc371902 /drivers/irqchip/irq-gic-v3.c | |
parent | 0a30d69195604f136a4e3bfaf453f742e583ce95 (diff) | |
parent | e875bd66dfb68f4e898e9a43ef42858c504a7f23 (diff) |
Merge branch 'irq/urgent' into irq/core
Merge urgent fixes so pending patches for 4.9 can be applied.
Diffstat (limited to 'drivers/irqchip/irq-gic-v3.c')
-rw-r--r-- | drivers/irqchip/irq-gic-v3.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c index 850f9c422f24..9b81bd8b929c 100644 --- a/drivers/irqchip/irq-gic-v3.c +++ b/drivers/irqchip/irq-gic-v3.c | |||
@@ -556,7 +556,7 @@ static int gic_starting_cpu(unsigned int cpu) | |||
556 | static u16 gic_compute_target_list(int *base_cpu, const struct cpumask *mask, | 556 | static u16 gic_compute_target_list(int *base_cpu, const struct cpumask *mask, |
557 | unsigned long cluster_id) | 557 | unsigned long cluster_id) |
558 | { | 558 | { |
559 | int cpu = *base_cpu; | 559 | int next_cpu, cpu = *base_cpu; |
560 | unsigned long mpidr = cpu_logical_map(cpu); | 560 | unsigned long mpidr = cpu_logical_map(cpu); |
561 | u16 tlist = 0; | 561 | u16 tlist = 0; |
562 | 562 | ||
@@ -570,9 +570,10 @@ static u16 gic_compute_target_list(int *base_cpu, const struct cpumask *mask, | |||
570 | 570 | ||
571 | tlist |= 1 << (mpidr & 0xf); | 571 | tlist |= 1 << (mpidr & 0xf); |
572 | 572 | ||
573 | cpu = cpumask_next(cpu, mask); | 573 | next_cpu = cpumask_next(cpu, mask); |
574 | if (cpu >= nr_cpu_ids) | 574 | if (next_cpu >= nr_cpu_ids) |
575 | goto out; | 575 | goto out; |
576 | cpu = next_cpu; | ||
576 | 577 | ||
577 | mpidr = cpu_logical_map(cpu); | 578 | mpidr = cpu_logical_map(cpu); |
578 | 579 | ||