Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clocksource: vf_pit_timer: Support shutdown mode

In order to avoid waking up the system in a low power mode, the
clocksource should not generate interrupts anymore. Disable the PIT
timer interrupt when changing into the CLOCK_EVT_MODE_SHUTDOWN mode.

[dlezcano] : remove superfluous empty line

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Bill Pringlemeir <bpringlemeir@nbsps.com>

authored by

Stefan Agner and committed by
Daniel Lezcano
04f7e3e5 e4a6b378

+4
+4
drivers/clocksource/vf_pit_timer.c
··· 93 93 case CLOCK_EVT_MODE_PERIODIC: 94 94 pit_set_next_event(cycle_per_jiffy, evt); 95 95 break; 96 + case CLOCK_EVT_MODE_SHUTDOWN: 97 + case CLOCK_EVT_MODE_UNUSED: 98 + pit_timer_disable(); 99 + break; 96 100 default: 97 101 break; 98 102 }