qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Richard Henderson
Subject: Re: [PATCH 1/2] softmmu/cpus: Check if the cpu work list is empty atomically
Date: Thu, 27 Jan 2022 08:40:44 +1100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0

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 Horowitz<idan.horowitz@gmail.com>
---
  softmmu/cpus.c | 7 +------
  1 file changed, 1 insertion(+), 6 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

Queued to tcg-next.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]