Skip to content

Commit 16fc5bc

Browse files
realmztorvalds
authored andcommitted
smp: blackfin: fix check error, using atomic_ops to handle atomic_t type
Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Steven Miao <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent f2ec26a commit 16fc5bc

File tree

1 file changed

+3
-3
lines changed
  • arch/blackfin/mach-common

1 file changed

+3
-3
lines changed

arch/blackfin/mach-common/smp.c

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

149149
bfin_ipi_data = &__get_cpu_var(bfin_ipi);
150-
while ((pending = xchg(&bfin_ipi_data->bits, 0)) != 0) {
150+
while ((pending = atomic_xchg(&bfin_ipi_data->bits, 0)) != 0) {
151151
msg = 0;
152152
do {
153153
msg = find_next_bit(&pending, BITS_PER_LONG, msg + 1);
@@ -182,8 +182,8 @@ static void bfin_ipi_init(void)
182182
struct ipi_data *bfin_ipi_data;
183183
for_each_possible_cpu(cpu) {
184184
bfin_ipi_data = &per_cpu(bfin_ipi, cpu);
185-
bfin_ipi_data->bits = 0;
186-
bfin_ipi_data->count = 0;
185+
atomic_set(&bfin_ipi_data->bits, 0);
186+
atomic_set(&bfin_ipi_data->count, 0);
187187
}
188188
}
189189

0 commit comments

Comments
 (0)