diff options
author | Andreas Färber <afaerber@suse.de> | 2013-07-07 19:50:23 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-09-03 12:25:55 +0200 |
commit | 38fcbd3f08375eb2986b9b63ccd4f593e71aa99d (patch) | |
tree | 59da51d17fb6e9aed5da12c26f2bebd8ccfb6dce /include | |
parent | bdc44640cb33c90809376a262df871a1144d339a (diff) |
cpu: Replace qemu_for_each_cpu()
It was introduced to loop over CPUs from target-independent code, but
since commit 182735efaf956ccab50b6d74a4fed163e0f35660 target-independent
CPUState is used.
A loop can be considered more efficient than function calls in a loop,
and CPU_FOREACH() hides implementation details just as well, so use that
instead.
Suggested-by: Markus Armbruster <armbru@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/qom/cpu.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/qom/cpu.h b/include/qom/cpu.h index 79f7c8709d..7739e00067 100644 --- a/include/qom/cpu.h +++ b/include/qom/cpu.h @@ -403,15 +403,6 @@ void run_on_cpu(CPUState *cpu, void (*func)(void *data), void *data); void async_run_on_cpu(CPUState *cpu, void (*func)(void *data), void *data); /** - * qemu_for_each_cpu: - * @func: The function to be executed. - * @data: Data to pass to the function. - * - * Executes @func for each CPU. - */ -void qemu_for_each_cpu(void (*func)(CPUState *cpu, void *data), void *data); - -/** * qemu_get_cpu: * @index: The CPUState@cpu_index value of the CPU to obtain. * |