Searched hist:"5580 ea45" (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/include/hw/ |
H A D | ptimer.h | 5580ea45 Mon Oct 24 10:26:52 CDT 2016 Dmitry Osipenko <digetx@gmail.com> hw/ptimer: Add "no counter round down" policy For most of the timers counter starts to decrement after first period expires. Due to rounding down performed by the ptimer_get_count, it returns counter - 1 for the running timer, so that for the ptimer user it looks like counter gets decremented immediately after running the timer. Add "no counter round down" policy that provides correct behaviour for those timers. Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Message-id: ef39622d0ebfdc32a0877e59ffdf6910dc3db688.1475421224.git.digetx@gmail.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
|
/openbmc/qemu/hw/core/ |
H A D | ptimer.c | 5580ea45 Mon Oct 24 10:26:52 CDT 2016 Dmitry Osipenko <digetx@gmail.com> hw/ptimer: Add "no counter round down" policy For most of the timers counter starts to decrement after first period expires. Due to rounding down performed by the ptimer_get_count, it returns counter - 1 for the running timer, so that for the ptimer user it looks like counter gets decremented immediately after running the timer. Add "no counter round down" policy that provides correct behaviour for those timers. Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Message-id: ef39622d0ebfdc32a0877e59ffdf6910dc3db688.1475421224.git.digetx@gmail.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
|