static void tegra_dc_underflow_worker(struct work_struct *work) { struct tegra_dc *dc = container_of( to_delayed_work(work), struct tegra_dc, underflow_work); mutex_lock(&dc->lock); tegra_dc_hold_dc_out(dc); if (dc->enabled) { tegra_dc_underflow_handler(dc); } tegra_dc_release_dc_out(dc); mutex_unlock(&dc->lock); }
static void tegra_dc_underflow_worker(struct work_struct *work) { struct tegra_dc *dc = container_of( to_delayed_work(work), struct tegra_dc, underflow_work); mutex_lock(&dc->lock); if (dc->out->flags & TEGRA_DC_OUT_ONE_SHOT_LP_MODE) tegra_dc_host_resume(dc); if (dc->enabled) { tegra_dc_underflow_handler(dc); } mutex_unlock(&dc->lock); }