diff options
author | Stefan Agner <stefan@agner.ch> | 2014-09-28 19:50:05 -0400 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2014-09-28 19:50:05 -0400 |
commit | 04f7e3e5134b9517bd9a78a84a9ee0f982d3ebdd (patch) | |
tree | 9aceaf4035d0101bbeb7a9673d80a7fa2ed1c9ef /drivers/clocksource/vf_pit_timer.c | |
parent | e4a6b378751fa8934c691816da1423e849059fad (diff) |
clocksource: vf_pit_timer: Support shutdown mode
In order to avoid waking up the system in a low power mode, the
clocksource should not generate interrupts anymore. Disable the PIT
timer interrupt when changing into the CLOCK_EVT_MODE_SHUTDOWN mode.
[dlezcano] : remove superfluous empty line
Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Bill Pringlemeir <bpringlemeir@nbsps.com>
Diffstat (limited to 'drivers/clocksource/vf_pit_timer.c')
-rw-r--r-- | drivers/clocksource/vf_pit_timer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/clocksource/vf_pit_timer.c b/drivers/clocksource/vf_pit_timer.c index a918bc481c52..b45ac6229b57 100644 --- a/drivers/clocksource/vf_pit_timer.c +++ b/drivers/clocksource/vf_pit_timer.c | |||
@@ -93,6 +93,10 @@ static void pit_set_mode(enum clock_event_mode mode, | |||
93 | case CLOCK_EVT_MODE_PERIODIC: | 93 | case CLOCK_EVT_MODE_PERIODIC: |
94 | pit_set_next_event(cycle_per_jiffy, evt); | 94 | pit_set_next_event(cycle_per_jiffy, evt); |
95 | break; | 95 | break; |
96 | case CLOCK_EVT_MODE_SHUTDOWN: | ||
97 | case CLOCK_EVT_MODE_UNUSED: | ||
98 | pit_timer_disable(); | ||
99 | break; | ||
96 | default: | 100 | default: |
97 | break; | 101 | break; |
98 | } | 102 | } |