Skip to content

Commit

Permalink
irqchip: Properly fetch the per cpu offset
Browse files Browse the repository at this point in the history
The raw_cpu_read() conversion dropped the fetch of the offset
from base->percpu_base in gic_get_percpu_base.

Signed-off-by: Christoph Lameter <[email protected]>
Reported-and-tested-by: Bartlomiej Zolnierkiewicz <[email protected]>
Acked-by: Nicolas Pitre <[email protected]>
Acked-by: Jason Cooper <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
  • Loading branch information
Christoph Lameter authored and htejun committed Sep 19, 2014
1 parent 59f6e20 commit 513d1a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/irqchip/irq-gic.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ static struct gic_chip_data gic_data[MAX_GIC_NR] __read_mostly;
#ifdef CONFIG_GIC_NON_BANKED
static void __iomem *gic_get_percpu_base(union gic_base *base)
{
return raw_cpu_read(base->percpu_base);
return raw_cpu_read(*base->percpu_base);
}

static void __iomem *gic_get_common_base(union gic_base *base)
Expand Down

0 comments on commit 513d1a2

Please sign in to comment.