]> Git Repo - linux.git/commitdiff
irqchip: Properly fetch the per cpu offset
authorChristoph Lameter <[email protected]>
Tue, 2 Sep 2014 15:00:07 +0000 (10:00 -0500)
committerTejun Heo <[email protected]>
Fri, 19 Sep 2014 03:48:08 +0000 (23:48 -0400)
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]>
drivers/irqchip/irq-gic.c

index 399a707ec51e294001c5607ce442256965bf961f..3826698b589034a3f3dc39d78ffb342ec9e79532 100644 (file)
@@ -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)
This page took 0.057171 seconds and 4 git commands to generate.