Commit 16fc5bc4 authored by Steven Miao's avatar Steven Miao Committed by Linus Torvalds

smp: blackfin: fix check error, using atomic_ops to handle atomic_t type

Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarSteven Miao <realmz6@gmail.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f2ec26a3
...@@ -147,7 +147,7 @@ static irqreturn_t ipi_handler_int1(int irq, void *dev_instance) ...@@ -147,7 +147,7 @@ static irqreturn_t ipi_handler_int1(int irq, void *dev_instance)
platform_clear_ipi(cpu, IRQ_SUPPLE_1); platform_clear_ipi(cpu, IRQ_SUPPLE_1);
bfin_ipi_data = &__get_cpu_var(bfin_ipi); bfin_ipi_data = &__get_cpu_var(bfin_ipi);
while ((pending = xchg(&bfin_ipi_data->bits, 0)) != 0) { while ((pending = atomic_xchg(&bfin_ipi_data->bits, 0)) != 0) {
msg = 0; msg = 0;
do { do {
msg = find_next_bit(&pending, BITS_PER_LONG, msg + 1); msg = find_next_bit(&pending, BITS_PER_LONG, msg + 1);
...@@ -182,8 +182,8 @@ static void bfin_ipi_init(void) ...@@ -182,8 +182,8 @@ static void bfin_ipi_init(void)
struct ipi_data *bfin_ipi_data; struct ipi_data *bfin_ipi_data;
for_each_possible_cpu(cpu) { for_each_possible_cpu(cpu) {
bfin_ipi_data = &per_cpu(bfin_ipi, cpu); bfin_ipi_data = &per_cpu(bfin_ipi, cpu);
bfin_ipi_data->bits = 0; atomic_set(&bfin_ipi_data->bits, 0);
bfin_ipi_data->count = 0; atomic_set(&bfin_ipi_data->count, 0);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment