From: Marc Zyngier Date: Mon, 2 Dec 2013 09:29:35 +0000 (+0000) Subject: clocksource: sunxi: Stop timer from ticking before enabling interrupts X-Git-Tag: v3.13-rc5~32^2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6db50bb67598668c525f12e2f7191f5d03ca46f2;p=pandora-kernel.git clocksource: sunxi: Stop timer from ticking before enabling interrupts The sun4i timer can still be ticking when we enable the interrupt. If another timer is actually used (A7 architected timer, for example), odds are that the interrupt will eventually fire with the event_handler pointer being NULL. The obvious fix it to stop the timer before registering the interrupt. Observed and tested on sun7i (cubietruck). Cc: Daniel Lezcano Acked-by: Maxime Ripard Signed-off-by: Marc Zyngier Signed-off-by: Daniel Lezcano --- Reading git-diff-tree failed