Skip to content

Commit 6594b98

Browse files
realmzBob Liu
authored andcommitted
Blackfin: smp: add smp_mb() to keep coherency
After use generic smp helpers, smp_mb() should be added to keep coherency. Signed-off-by: Steven Miao <realmz6@gmail.com> Signed-off-by: Bob Liu <lliubbo@gmail.com>
1 parent 4087af4 commit 6594b98

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • arch/blackfin/mach-common

‎arch/blackfin/mach-common/smp.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ static irqreturn_t ipi_handler_int1(int irq, void *dev_instance)
146146
platform_clear_ipi(cpu, IRQ_SUPPLE_1);
147147

148148
bfin_ipi_data = &__get_cpu_var(bfin_ipi);
149-
149+
smp_mb();
150150
while ((pending = xchg(&bfin_ipi_data->bits, 0)) != 0) {
151151
msg = 0;
152152
do {
@@ -195,7 +195,7 @@ void send_ipi(const struct cpumask *cpumask, enum ipi_message_type msg)
195195
unsigned long flags;
196196

197197
local_irq_save(flags);
198-
198+
smp_mb();
199199
for_each_cpu(cpu, cpumask) {
200200
bfin_ipi_data = &per_cpu(bfin_ipi, cpu);
201201
smp_mb();

0 commit comments

Comments
 (0)