OSDN Git Service

clockevents: Do not suspend/resume if unused
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 16 Jan 2015 09:05:51 +0000 (10:05 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 26 May 2015 23:03:38 +0000 (01:03 +0200)
commitac34ad27fc160b5bd31c731cdaaf6e1d1890ccb2
treeb8758f13c1a36c6a2b2067452d62b75d8277ebc3
parente83d0a4106d81dd08b70318f078f3bad6acdc110
clockevents: Do not suspend/resume if unused

There is no point in calling suspend/resume for unused clockevents as
they are already stopped and disabled.

This is really important for AT91 as the hardware is a trainwreck and
takes ages to synchronize.

Reported-by: Sylvain Rochet <sylvain.rochet@finsecur.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Boris Brezillon <boris.brezillon@free-electrons.com>
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: linux-arm-kernel@lists.infradead.org
Link: http://lkml.kernel.org/r/1421399151-26800-1-git-send-email-alexandre.belloni@free-electrons.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/time/clockevents.c