Re: [Qemu-devel] [PATCH 1/5] mc146818rtc: update periodic timer only if it is needed

2017-05-03 Thread Xiao Guangrong
On 05/03/2017 11:42 PM, Paolo Bonzini wrote: On 12/04/2017 11:51, guangrong.x...@gmail.com wrote: From: Xiao Guangrong Currently, the timer is updated whenever RegA or RegB is written even if the periodic timer related configuration is not changed This patch optimizes it slightly to make

Re: [Qemu-devel] [PATCH 1/5] mc146818rtc: update periodic timer only if it is needed

2017-05-03 Thread Paolo Bonzini
On 12/04/2017 11:51, guangrong.x...@gmail.com wrote: > From: Xiao Guangrong > > Currently, the timer is updated whenever RegA or RegB is written > even if the periodic timer related configuration is not changed > > This patch optimizes it slightly to make the update happen only > if its period

[Qemu-devel] [PATCH 1/5] mc146818rtc: update periodic timer only if it is needed

2017-04-12 Thread guangrong . xiao
From: Xiao Guangrong Currently, the timer is updated whenever RegA or RegB is written even if the periodic timer related configuration is not changed This patch optimizes it slightly to make the update happen only if its period or enable-status is changed, also later patches are depend on this o