Re: [Qemu-devel] [PATCH v8 4/4] arm_mptimer: Convert to use ptimer

2016-01-07 Thread Dmitry Osipenko
06.01.2016 16:17, Peter Crosthwaite пишет: +if ((old & 3) != (tb->control & 3)) { +ptimer_stop(tb->timer); +} +if (!(tb->control & 1)) { +break; +} +ptimer_set_period(tb->timer, timerblock_scale(tb)); +if ((old & 3) != (tb->c

Re: [Qemu-devel] [PATCH v8 4/4] arm_mptimer: Convert to use ptimer

2016-01-07 Thread Dmitry Osipenko
06.01.2016 16:17, Peter Crosthwaite пишет: On Tue, Jan 05, 2016 at 05:33:29AM +0300, Dmitry Osipenko wrote: Current ARM MPTimer implementation uses QEMUTimer for the actual timer, this implementation isn't complete and mostly tries to duplicate of what generic ptimer is already doing fine. Conv

Re: [Qemu-devel] [PATCH v8 4/4] arm_mptimer: Convert to use ptimer

2016-01-06 Thread Peter Crosthwaite
On Tue, Jan 05, 2016 at 05:33:29AM +0300, Dmitry Osipenko wrote: > Current ARM MPTimer implementation uses QEMUTimer for the actual timer, > this implementation isn't complete and mostly tries to duplicate of what > generic ptimer is already doing fine. > > Conversion to ptimer brings the followin

[Qemu-devel] [PATCH v8 4/4] arm_mptimer: Convert to use ptimer

2016-01-04 Thread Dmitry Osipenko
Current ARM MPTimer implementation uses QEMUTimer for the actual timer, this implementation isn't complete and mostly tries to duplicate of what generic ptimer is already doing fine. Conversion to ptimer brings the following benefits and fixes: - Simple timer pausing implementation