Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04f7e3e5 authored by Stefan Agner's avatar Stefan Agner Committed by Daniel Lezcano
Browse files

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: default avatarStefan Agner <stefan@agner.ch>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: default avatarBill Pringlemeir <bpringlemeir@nbsps.com>
parent e4a6b378
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -93,6 +93,10 @@ static void pit_set_mode(enum clock_event_mode mode,
	case CLOCK_EVT_MODE_PERIODIC:
	case CLOCK_EVT_MODE_PERIODIC:
		pit_set_next_event(cycle_per_jiffy, evt);
		pit_set_next_event(cycle_per_jiffy, evt);
		break;
		break;
	case CLOCK_EVT_MODE_SHUTDOWN:
	case CLOCK_EVT_MODE_UNUSED:
		pit_timer_disable();
		break;
	default:
	default:
		break;
		break;
	}
	}