diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2014-05-09 11:58:42 +0530 |
---|---|---|
committer | Gary S. Robertson <gary.robertson@linaro.org> | 2015-07-22 16:17:08 -0500 |
commit | 61655b40f050e503b0d7a2720878328fc650746d (patch) | |
tree | 88ea16b89a58d3602108cec8d760da0c013467a0 /fs | |
parent | c25bd30f4b5919d9fa87c4d298d8920e3f2c39b7 (diff) |
tick: SHUTDOWN event-dev if no events are required for KTIME_MAX
When expires is set to KTIME_MAX in tick_program_event(), we are sure that there
are no events enqueued for a very long time and so there is no point keeping
event device running. We will get interrupted without any work to do many a
times, for example when timer's counter overflows.
So, its better to SHUTDOWN the event device then and restart it ones we get a
request for next event. For implementing this a new field 'last_mode' is added
to 'struct clock_event_device' to keep track of last mode used.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions