static void keystone_set_mode(enum clock_event_mode mode, struct clock_event_device *evt) { switch (mode) { case CLOCK_EVT_MODE_PERIODIC: keystone_timer_config(timer.hz_period, CLOCK_EVT_MODE_PERIODIC); break; case CLOCK_EVT_MODE_UNUSED: case CLOCK_EVT_MODE_SHUTDOWN: case CLOCK_EVT_MODE_ONESHOT: keystone_timer_disable(); break; default: break; } }
static int keystone_shutdown(struct clock_event_device *evt) { keystone_timer_disable(); return 0; }