diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2014-06-10 13:52:25 +0530 |
---|---|---|
committer | Gary S. Robertson <gary.robertson@linaro.org> | 2015-01-19 19:14:01 -0600 |
commit | bfe18c296e7616de35986511d680149524e82088 (patch) | |
tree | 057f4d2bce0ab92aafc0286f12bcfe088f8ef3c4 /arch/tile | |
parent | b9992eec5682ff1db079b5d09844c603b33526de (diff) |
clockevents: misc: add support for ONESHOT_STOPPED mode
Clockevent devices can be stopped from core (hrtimers/tick) when they aren't
used anymore. This will mostly happen on a idle or tickless cpu. This is done to
avoid getting spurious interrupts when core doesn't want to handle them anymore.
For stopping clockevent devices, core requests drivers to switch to a special
optional mode: CLOCK_EVT_MODE_ONESHOT_STOPPED. At this time platforms can also
save some power by disabling these devices.
This patch adds support for handling CLOCK_EVT_MODE_ONESHOT_STOPPED mode for all
architectures that have single clockevent driver (to limit patch count).
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Santosh Shukla <santosh.shukla@linaro.org>
Diffstat (limited to 'arch/tile')
-rw-r--r-- | arch/tile/kernel/time.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/tile/kernel/time.c b/arch/tile/kernel/time.c index 21c1b51a6378..994eef445c38 100644 --- a/arch/tile/kernel/time.c +++ b/arch/tile/kernel/time.c @@ -149,6 +149,7 @@ static int tile_timer_set_mode(enum clock_event_mode mode, case CLOCK_EVT_MODE_ONESHOT: case CLOCK_EVT_MODE_UNUSED: case CLOCK_EVT_MODE_SHUTDOWN: + case CLOCK_EVT_MODE_ONESHOT_STOPPED: case CLOCK_EVT_MODE_RESUME: break; default: |