From: Viresh Kumar Date: Thu, 16 Jul 2015 11:26:15 +0000 (+0530) Subject: AVR32/time: Migrate to new 'set-state' interface X-Git-Tag: omap-for-v4.3/fixes-merge-window~213^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09adcdf212d777ace8bb31bed8ca5c1dbd56bd0f;p=pandora-kernel.git 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 Cc: Hans-Christian Egtvedt Signed-off-by: Viresh Kumar Acked-by: Hans-Christian Egtvedt --- Reading git-diff-tree failed