arm: gic: port to rk platform
author黄涛 <huangtao@rock-chips.com>
Mon, 20 Feb 2012 06:24:32 +0000 (14:24 +0800)
committer黄涛 <huangtao@rock-chips.com>
Mon, 20 Feb 2012 07:46:08 +0000 (15:46 +0800)
arch/arm/common/gic.c

index 9e74d12057f11fbbfbda417a13c54854c1c2ccbc..be20b306d94a69a34f3303ec07938525c028ecc0 100755 (executable)
@@ -92,7 +92,7 @@ static void gic_mask_irq(struct irq_data *d)
        writel_relaxed(mask, gic_dist_base(d) + GIC_DIST_ENABLE_CLEAR + (gic_irq(d) / 32) * 4);
        if (gic_arch_extn.irq_mask)
                gic_arch_extn.irq_mask(d);
-#ifdef CONFIG_ARCH_RK29
+#if defined(CONFIG_PLAT_RK) && !defined(CONFIG_SMP)
        dsb();
 #endif
        spin_unlock(&irq_controller_lock);
@@ -106,7 +106,7 @@ static void gic_unmask_irq(struct irq_data *d)
        if (gic_arch_extn.irq_unmask)
                gic_arch_extn.irq_unmask(d);
        writel_relaxed(mask, gic_dist_base(d) + GIC_DIST_ENABLE_SET + (gic_irq(d) / 32) * 4);
-#ifdef CONFIG_ARCH_RK29
+#if defined(CONFIG_PLAT_RK) && !defined(CONFIG_SMP)
        dsb();
 #endif
        spin_unlock(&irq_controller_lock);
@@ -121,7 +121,7 @@ static void gic_eoi_irq(struct irq_data *d)
        }
 
        writel_relaxed(gic_irq(d), gic_cpu_base(d) + GIC_CPU_EOI);
-#ifdef CONFIG_ARCH_RK29
+#ifdef CONFIG_PLAT_RK
        dsb();
 #endif
 }
@@ -212,7 +212,7 @@ static int gic_set_wake(struct irq_data *d, unsigned int on)
 {
        int ret = -ENXIO;
 
-#ifdef CONFIG_ARCH_RK29
+#ifdef CONFIG_PLAT_RK
        return 0;
 #endif
        if (gic_arch_extn.irq_set_wake)