/** * Resets syncpoint and waitbase values to sw shadows */ void nvhost_syncpt_reset(struct nvhost_syncpt *sp) { u32 i; for (i = 0; i < NV_HOST1X_SYNCPT_NB_PTS; i++) reset_syncpt(sp, i); for (i = 0; i < NV_HOST1X_SYNCPT_NB_BASES; i++) reset_syncpt_wait_base(sp, i); wmb(); }
/** * Resets syncpoint and waitbase values to sw shadows */ void nvhost_syncpt_reset(struct nvhost_syncpt *sp) { u32 i; for (i = 0; i < NV_HOST1X_SYNCPT_NB_PTS; i++) reset_syncpt(sp, i); for (i = 0; i < NV_HOST1X_SYNCPT_NB_BASES; i++) reset_syncpt_wait_base(sp, i); #ifdef CONFIG_MACH_N1 sp->restore_needed = false; #endif wmb(); }