OSDN Git Service

allwinner-a10-pit: avoid generation of spurious interrupts
authorBeniamino Galvani <b.galvani@gmail.com>
Tue, 25 Mar 2014 18:22:06 +0000 (19:22 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 17 Apr 2014 20:34:06 +0000 (21:34 +0100)
commit323a8771cfb96ab752c9d27e939a2fbac1380b1c
treebd2059a391b50b27945adacb1057022121461e2a
parent2237094d9619a64b669ca9f7fb1430b9b329f9cf
allwinner-a10-pit: avoid generation of spurious interrupts

The model was generating interrupts for all enabled timers after the
expiration of one of them. Avoid this by passing explicitly the timer
index to the callback function.

Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Reviewed-by: Li Guang <lig.fnst@cn.fujitsu.com>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Message-id: 1395771730-16882-4-git-send-email-b.galvani@gmail.com
[PMM: avoid duplicate typedef of AwA10PITState]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/timer/allwinner-a10-pit.c
include/hw/timer/allwinner-a10-pit.h