Peter Xu <pet...@redhat.com> writes: > The variable vcpu_total_blocktime isn't easy to follow. In reality, it > wants to capture the case where all vCPUs are stopped, and now there will > be some vCPUs starts running. > > The name now starts to conflict with vcpu_blocktime_total[], meanwhile it's > actually not necessary to have the variable at all: since nobody is > touching smp_cpus_down except ourselves, we can safely do the calculation > at the end before decrementing smp_cpus_down. > > Hopefully this makes the logic easier to read, side benefit is we drop one > temp var. > > Signed-off-by: Peter Xu <pet...@redhat.com>
Reviewed-by: Fabiano Rosas <faro...@suse.de>