diff options
author | Christoph Lameter <cl@linux.com> | 2014-09-02 17:00:07 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-09-19 05:48:08 +0200 |
commit | 513d1a2884a49654f368b5fa25ef186e976bdada (patch) | |
tree | 0e56ce0e273e47cf647564b5116712b16cfab7b6 /drivers/irqchip/irq-gic.c | |
parent | percpu: Resolve ambiguities in __get_cpu_var/cpumask_var_t -fix (diff) | |
download | linux-513d1a2884a49654f368b5fa25ef186e976bdada.tar.xz linux-513d1a2884a49654f368b5fa25ef186e976bdada.zip |
irqchip: Properly fetch the per cpu offset
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 <cl@linux.com>
Reported-and-tested-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Acked-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/irqchip/irq-gic.c')
-rw-r--r-- | drivers/irqchip/irq-gic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c index 399a707ec51e..3826698b5890 100644 --- a/drivers/irqchip/irq-gic.c +++ b/drivers/irqchip/irq-gic.c @@ -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) |