On 10/18/18 6:05 PM, Emilio G. Cota wrote: > Instead of open-coding it. > > While at it, make sure that all accesses to the list are > performed while holding the list's lock. > > Cc: Peter Crosthwaite <crosthwaite.pe...@gmail.com> > Cc: Richard Henderson <r...@twiddle.net> > Signed-off-by: Emilio G. Cota <c...@braap.org> > --- > include/qom/cpu.h | 6 +++--- > cpus-common.c | 25 ++++++++----------------- > cpus.c | 14 ++++++++++++-- > qom/cpu.c | 1 + > 4 files changed, 24 insertions(+), 22 deletions(-)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org> r~