Re: [Qemu-devel] arm mptimer implementation - why prescaler is multiply by 10?

2015-10-29 Thread Dmitry Osipenko
29.10.2015 10:00, Krzeminski, Marcin (Nokia - PL/Wroclaw) пишет: *From:*EXT Peter Crosthwaite [mailto:crosthwaitepe...@gmail.com] *Sent:* Tuesday, October 27, 2015 7:23 PM *To:* Peter Maydell *Cc:* Dmitry Osipenko ; Krzeminski, Marcin (Nokia -

Re: [Qemu-devel] arm mptimer implementation - why prescaler is multiply by 10?

2015-10-29 Thread Krzeminski, Marcin (Nokia - PL/Wroclaw)
From: EXT Peter Crosthwaite [mailto:crosthwaitepe...@gmail.com] Sent: Tuesday, October 27, 2015 7:23 PM To: Peter Maydell Cc: Dmitry Osipenko ; Krzeminski, Marcin (Nokia - PL/Wroclaw) ; qemu-devel@nongnu.org Subject: Re:

[Qemu-devel] arm mptimer implementation - why prescaler is multiply by 10?

2015-10-27 Thread Krzeminski, Marcin (Nokia - PL/Wroclaw)
Hello, I am playing with U-Boot on ARM under qemu. U-boot uses mptimer, and under qemu one second takes about 1 in real world. At the moment it seem that in u-boot is ok, so I have question about below function. Why prescaler value is multiply by 10? static inline uint64_t

Re: [Qemu-devel] arm mptimer implementation - why prescaler is multiply by 10?

2015-10-27 Thread Dmitry Osipenko
27.10.2015 21:01, Peter Crosthwaite пишет: On Tue, Oct 27, 2015 at 7:19 AM, Dmitry Osipenko > wrote: 27.10.2015 16:48, Krzeminski, Marcin (Nokia - PL/Wroclaw) пишет: Hello, I am playing with U-Boot on ARM under qemu.

Re: [Qemu-devel] arm mptimer implementation - why prescaler is multiply by 10?

2015-10-27 Thread Peter Crosthwaite
On Tue, Oct 27, 2015 at 7:19 AM, Dmitry Osipenko wrote: > 27.10.2015 16:48, Krzeminski, Marcin (Nokia - PL/Wroclaw) пишет: > > Hello, >> I am playing with U-Boot on ARM under qemu. >> U-boot uses mptimer, and under qemu one second takes about 1 in real >> world. >> At the

Re: [Qemu-devel] arm mptimer implementation - why prescaler is multiply by 10?

2015-10-27 Thread Peter Maydell
On 27 October 2015 at 18:01, Peter Crosthwaite wrote: > On Tue, Oct 27, 2015 at 7:19 AM, Dmitry Osipenko wrote: >> From my observation, Linux kernel is booting noticeably faster in the >> emulated guest and host machine CPU usage is lower if we

Re: [Qemu-devel] arm mptimer implementation - why prescaler is multiply by 10?

2015-10-27 Thread Peter Crosthwaite
On Tue, Oct 27, 2015 at 11:19 AM, Peter Maydell wrote: > On 27 October 2015 at 18:01, Peter Crosthwaite > wrote: > > On Tue, Oct 27, 2015 at 7:19 AM, Dmitry Osipenko > wrote: > >> From my observation, Linux kernel is

Re: [Qemu-devel] arm mptimer implementation - why prescaler is multiply by 10?

2015-10-27 Thread Peter Maydell
On 27 October 2015 at 14:19, Dmitry Osipenko wrote: > 27.10.2015 16:48, Krzeminski, Marcin (Nokia - PL/Wroclaw) пишет: > >> Hello, >> I am playing with U-Boot on ARM under qemu. >> U-boot uses mptimer, and under qemu one second takes about 1 in real >> world. >> At the moment it

Re: [Qemu-devel] arm mptimer implementation - why prescaler is multiply by 10?

2015-10-27 Thread Dmitry Osipenko
27.10.2015 16:48, Krzeminski, Marcin (Nokia - PL/Wroclaw) пишет: Hello, I am playing with U-Boot on ARM under qemu. U-boot uses mptimer, and under qemu one second takes about 1 in real world. At the moment it seem that in u-boot is ok, so I have question about below function. Why prescaler