rk fb: sync with hwc when wait at fb
authorhjc <hjc@rock-chips.com>
Tue, 20 May 2014 04:13:58 +0000 (12:13 +0800)
committerhjc <hjc@rock-chips.com>
Tue, 20 May 2014 04:14:36 +0000 (12:14 +0800)
drivers/video/rockchip/rk_fb.c

index 45c685990ac3199ccecd8386be99691d0ad541b8..c71126089d79f29f0e64d124ecf03b6be601e75f 100755 (executable)
@@ -1279,6 +1279,9 @@ void rk_fb_free_dma_buf(struct rk_lcdc_driver *dev_drv,struct rk_fb_reg_win_data
 #endif
                if(area_data->ion_handle != NULL)
                        ion_free(rk_fb->ion_client, area_data->ion_handle);
+               if(area_data->acq_fence) {
+                       sync_fence_put(area_data->acq_fence);
+               }
        }
        memset(reg_win_data, 0, sizeof(struct rk_fb_reg_win_data));
 }