diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-07-16 16:56:15 +0530 |
---|---|---|
committer | Hans-Christian Egtvedt <egtvedt@samfundet.no> | 2015-07-20 12:19:10 +0200 |
commit | 09adcdf212d777ace8bb31bed8ca5c1dbd56bd0f (patch) | |
tree | df13925775aeb0b7f172086446a494fda7eadd26 /lib/percpu_test.c | |
parent | 52721d9d3334c1cb1f76219a161084094ec634dc (diff) |
AVR32/time: Migrate to new 'set-state' interface
Migrate avr32 driver to the new 'set-state' interface provided by
clockevents core, the earlier 'set-mode' interface is marked obsolete
now.
This also enables us to implement callbacks for new states of clockevent
devices, for example: ONESHOT_STOPPED.
We want to call cpu_idle_poll_ctrl() in shutdown only if we were in
oneshot or resume state earlier. Create another variable to save this
information and check that in shutdown callback.
Cc: Haavard Skinnemoen <hskinnemoen@gmail.com>
Cc: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Diffstat (limited to 'lib/percpu_test.c')
0 files changed, 0 insertions, 0 deletions