« Previous | Next » 

Revision 38fcbd3f

ID38fcbd3f08375eb2986b9b63ccd4f593e71aa99d

Added by Andreas Färber over 10 years ago

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 <>
Acked-by: Michael S. Tsirkin <>
Signed-off-by: Andreas Färber <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences