cpu: Add qemu_for_each_cpu()
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 24 Apr 2013 20:58:04 +0000 (22:58 +0200)
committerAndreas Färber <afaerber@suse.de>
Wed, 1 May 2013 11:04:18 +0000 (13:04 +0200)
commitd6b9e0d60cc511eca210834428bb74508cff3d33
treed7220a74859b39703f59df54265c5f0cf778715b
parent997395d3888fcde6ce41535a8208d7aa919d824b
cpu: Add qemu_for_each_cpu()

Wrapper to avoid open-coded loops and to make CPUState iteration
independent of CPUArchState.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
exec.c
include/qom/cpu.h