[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 4/8] timers: reorganize icount_warp_rt
From: |
Alex Bligh |
Subject: |
Re: [Qemu-devel] [PATCH 4/8] timers: reorganize icount_warp_rt |
Date: |
Tue, 8 Oct 2013 17:50:12 +0100 |
On 8 Oct 2013, at 09:47, Paolo Bonzini wrote:
> To prepare for future code changes, move the increment of qemu_icount_bias
> outside the "if" statement.
>
> Also, hoist outside the if the check for timers that expired due to the
> "warping". The check is redundant when !runstate_is_running(), but
> doing it this way helps because the code that increments qemu_icount_bias
> will be a critical section.
>
> Signed-off-by: Paolo Bonzini <address@hidden>
> ---
> cpus.c | 18 ++++++++++--------
> 1 file changed, 10 insertions(+), 8 deletions(-)
Looks good - too much icount mindbending for Reviewed-By:
--
Alex Bligh
[Qemu-devel] [PATCH 6/8] timers: introduce cpu_get_clock_locked, Paolo Bonzini, 2013/10/08
[Qemu-devel] [PATCH 7/8] timers: document (future) locking rules for icount, Paolo Bonzini, 2013/10/08
[Qemu-devel] [PATCH 8/8] timers: make icount thread-safe, Paolo Bonzini, 2013/10/08