[PATCH 3/3] mach-ux500: Added nomadik mtu timer suspend/resume hooks.

Russell King - ARM Linux linux at arm.linux.org.uk
Thu Sep 2 12:07:08 EDT 2010


On Thu, Sep 02, 2010 at 09:30:33AM +0200, Jonas Aaberg wrote:
>  struct sys_timer ux500_timer = {
> -	.init	= ux500_timer_init,
> +	.init	 = ux500_timer_init,
> +#ifdef CONFIG_PM
> +	.suspend = nmdk_timer_suspend,
> +	.resume  = nmdk_timer_resume,
> +#endif

It would be better to use the callbacks from the clocksource/clockevent
code so that if your timers aren't being used, they can be shutdown for
power saving.

In any case, with clockevents support enabled, these suspend/resume
callbacks will not be called.



More information about the linux-arm-kernel mailing list