smp: cast the read in quiesce_all_critical through void *

Fixes compilation on some 32-bit arm platforms.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mateusz Guzik 2019-11-30 19:33:02 +00:00
parent 9977bd1d5b
commit e0a1a1e6cb

View File

@ -952,7 +952,7 @@ quiesce_all_critical(void)
break;
cpu_spinwait();
newtd = (struct thread *)
atomic_load_acq_ptr((u_long *)pcpu->pc_curthread);
atomic_load_acq_ptr((void *)pcpu->pc_curthread);
if (td != newtd)
break;
}