summary refs log tree commit diff stats
path: root/linux-headers/linux
diff options
context:
space:
mode:
authorDmitry Osipenko <digetx@gmail.com>2015-07-06 01:47:47 +0300
committerPeter Maydell <peter.maydell@linaro.org>2015-07-06 10:25:37 +0100
commit8a52340cbaf60d4dd0a78bbfe12632639fe3da6d (patch)
tree73f82b1c8f19b101e5ee6d9606f1a0b576965b72 /linux-headers/linux
parent12dc273e98e4e111880b25c12bf671dc8951b8e6 (diff)
downloadfocaccia-qemu-8a52340cbaf60d4dd0a78bbfe12632639fe3da6d.tar.gz
focaccia-qemu-8a52340cbaf60d4dd0a78bbfe12632639fe3da6d.zip
arm_mptimer: Fix timer shutdown and mode change
The running timer can't be stopped because timer control code just
doesn't handle disabling the timer. Fix it by deleting the timer if
the enable bit is cleared.

The timer won't start periodic ticking if a ONE-SHOT -> PERIODIC mode
change happens after a one-shot tick was completed. Fix it by
re-starting ticking if the timer isn't ticking right now.

To avoid code churning, these two fixes are squashed in one commit.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'linux-headers/linux')
0 files changed, 0 insertions, 0 deletions