diff options
author | Dmitry Osipenko | 2016-09-22 19:13:06 +0200 |
---|---|---|
committer | Peter Maydell | 2016-09-22 19:13:06 +0200 |
commit | e7ea81c37d6f8b4202f63abbac35267bba1c8260 (patch) | |
tree | 0d2877f9fe156c7625c8534cd4de0869f9f873a4 /hw/arm/musicpal.c | |
parent | hw/ptimer: Actually stop the timer in case of error (diff) | |
download | qemu-e7ea81c37d6f8b4202f63abbac35267bba1c8260.tar.gz qemu-e7ea81c37d6f8b4202f63abbac35267bba1c8260.tar.xz qemu-e7ea81c37d6f8b4202f63abbac35267bba1c8260.zip |
hw/ptimer: Introduce timer policy feature
Some of the timer devices may behave differently from what ptimer
provides. Introduce ptimer policy feature that allows ptimer users to
change default and wrong timer behaviour, for example to continuously
trigger periodic timer when load value is equal to "0".
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Message-id: 994cd608ec392da6e58f0643800dda595edb9d97.1473252818.git.digetx@gmail.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm/musicpal.c')
-rw-r--r-- | hw/arm/musicpal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/arm/musicpal.c b/hw/arm/musicpal.c index cc50ace13d..7527037c23 100644 --- a/hw/arm/musicpal.c +++ b/hw/arm/musicpal.c @@ -837,7 +837,7 @@ static void mv88w8618_timer_init(SysBusDevice *dev, mv88w8618_timer_state *s, s->freq = freq; bh = qemu_bh_new(mv88w8618_timer_tick, s); - s->ptimer = ptimer_init(bh); + s->ptimer = ptimer_init(bh, PTIMER_POLICY_DEFAULT); } static uint64_t mv88w8618_pit_read(void *opaque, hwaddr offset, |