if (ctx->suspended)
return;
- atomic_set(&ctx->wait_vsync_event, 2);
+ atomic_set(&ctx->wait_vsync_event, 1);
/*
* wait for FIMD to signal VSYNC interrupt or return after
decon_update(ctx);
- atomic_set(&ctx->wait_vsync_event, 2);
+ atomic_set(&ctx->wait_vsync_event, 1);
/*
* wait for FIMD to signal VSYNC interrupt or return after
out:
if (atomic_read(&ctx->wait_vsync_event)) {
- atomic_dec_if_positive(&ctx->wait_vsync_event);
+ atomic_set(&ctx->wait_vsync_event, 0);
wake_up(&ctx->wait_vsync_queue);
}