exynos4_mct_write(tmp, mevt->base + MCT_L_TCON_OFFSET);
}
-static void exynos4_mct_tick_clear(struct mct_clock_event_device *mevt)
-{
- /* Clear the MCT tick interrupt */
- if (readl_relaxed(reg_base + mevt->base + MCT_L_INT_CSTAT_OFFSET) & 1)
- exynos4_mct_write(0x1, mevt->base + MCT_L_INT_CSTAT_OFFSET);
-}
-
static int exynos4_tick_set_next_event(unsigned long cycles,
struct clock_event_device *evt)
{
struct mct_clock_event_device *mevt;
mevt = container_of(evt, struct mct_clock_event_device, evt);
-<<<<<<< HEAD
exynos4_mct_tick_stop(mevt, 1);
-=======
- exynos4_mct_tick_stop(mevt);
- exynos4_mct_tick_clear(mevt);
->>>>>>> android-4.14-p
return 0;
}
struct mct_clock_event_device *mevt = dev_id;
struct clock_event_device *evt = &mevt->evt;
-<<<<<<< HEAD
exynos4_mct_tick_stop(mevt, 0);
-=======
- /*
- * This is for supporting oneshot mode.
- * Mct would generate interrupt periodically
- * without explicit stopping.
- */
- if (!clockevent_state_periodic(&mevt->evt))
- exynos4_mct_tick_stop(mevt);
-
- exynos4_mct_tick_clear(mevt);
->>>>>>> android-4.14-p
evt->event_handler(evt);