From: Christoph Lameter Date: Tue, 2 Sep 2014 15:00:07 +0000 (-0500) Subject: irqchip: Properly fetch the per cpu offset X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=513d1a2884a49654f368b5fa25ef186e976bdada;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Reported-and-tested-by: Bartlomiej Zolnierkiewicz Acked-by: Nicolas Pitre Acked-by: Jason Cooper Signed-off-by: Tejun Heo --- 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)