We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4964610 commit d9e2ed6Copy full SHA for d9e2ed6
drivers/irqchip/irq-mips-gic.c
@@ -88,6 +88,12 @@ static int __gic_with_next_online_cpu(int prev)
88
return cpu;
89
}
90
91
+static inline void gic_unlock_cluster(void)
92
+{
93
+ if (mips_cps_multicluster_cpus())
94
+ mips_cm_unlock_other();
95
+}
96
+
97
/**
98
* for_each_online_cpu_gic() - Iterate over online CPUs, access local registers
99
* @cpu: An integer variable to hold the current CPU number
@@ -102,6 +108,7 @@ static int __gic_with_next_online_cpu(int prev)
102
108
guard(raw_spinlock_irqsave)(gic_lock); \
103
109
for ((cpu) = __gic_with_next_online_cpu(-1); \
104
110
(cpu) < nr_cpu_ids; \
111
+ gic_unlock_cluster(), \
105
112
(cpu) = __gic_with_next_online_cpu(cpu))
106
113
107
114
static void gic_clear_pcpu_masks(unsigned int intr)
0 commit comments