Skip to content

Commit

Permalink
cpus-common: always defer async_run_on_cpu work items
Browse files Browse the repository at this point in the history
async_run_on_cpu is only called from the I/O thread, not from CPU threads,
so it doesn't make any difference.  It will make a difference however
for async_safe_run_on_cpu.

Reviewed-by: Alex Bennée <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
bonzini committed Sep 27, 2016
1 parent a200f2f commit c978b31
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cpus-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,6 @@ void async_run_on_cpu(CPUState *cpu, run_on_cpu_func func, void *data)
{
struct qemu_work_item *wi;

if (qemu_cpu_is_self(cpu)) {
func(cpu, data);
return;
}

wi = g_malloc0(sizeof(struct qemu_work_item));
wi->func = func;
wi->data = data;
Expand Down

0 comments on commit c978b31

Please sign in to comment.