Re: [PATCH 1/2] softmmu/cpus: Check if the cpu work list is empty atomically

2022-01-26 Thread Richard Henderson
On 1/14/22 11:43 AM, Idan Horowitz wrote: Instead of taking the lock of the cpu work list in order to check if it's empty, we can just read the head pointer atomically. This decreases cpu_work_list_empty's share from 5% to 1.3% in a profile of icount-enabled aarch64-softmmu. Signed-off-by: Idan

[PATCH 1/2] softmmu/cpus: Check if the cpu work list is empty atomically

2022-01-13 Thread Idan Horowitz
Instead of taking the lock of the cpu work list in order to check if it's empty, we can just read the head pointer atomically. This decreases cpu_work_list_empty's share from 5% to 1.3% in a profile of icount-enabled aarch64-softmmu. Signed-off-by: Idan Horowitz --- softmmu/cpus.c | 7 +-- 1