Re: [Qemu-devel] [PATCH v2] hw/timer: Add value matching support to aspeed_timer

2016-06-16 Thread Peter Maydell
On 15 June 2016 at 08:04, Andrew Jeffery wrote: > Value matching allows Linux to boot with CONFIG_NO_HZ_IDLE=y on the > palmetto-bmc machine. Two match registers are provided for each timer. > > Signed-off-by: Andrew Jeffery > --- > Since v1: Address comments from Peter > > * Switch calculations

[Qemu-devel] [PATCH v2] hw/timer: Add value matching support to aspeed_timer

2016-06-15 Thread Andrew Jeffery
Value matching allows Linux to boot with CONFIG_NO_HZ_IDLE=y on the palmetto-bmc machine. Two match registers are provided for each timer. Signed-off-by: Andrew Jeffery --- Since v1: Address comments from Peter * Switch calculations to use muldiv64() * Switch to loops when calculating the next e