monitor: Use qemu_get_cpu() in monitor_set_cpu()
authorAndreas Färber <afaerber@suse.de>
Fri, 15 Feb 2013 16:01:09 +0000 (17:01 +0100)
committerAndreas Färber <afaerber@suse.de>
Tue, 12 Mar 2013 09:35:54 +0000 (10:35 +0100)
commit1c8bb3cc7b98ad07a028567b86fc6baa5c5a0b7a
tree59480d3e2555b421c925ceef097c00bc05c418f6
parentd76fddaeeec674cab4802b585db6c9fb3a0066dc
monitor: Use qemu_get_cpu() in monitor_set_cpu()

No functional change, just a reduction of CPU loops.

The mon_cpu field is left untouched for now since changing that requires
a number of larger prerequisites, including cpu_synchronize_state() and
mon_get_cpu().

Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
monitor.c