#else
ret =sync_fence->fence->ops->signaled(sync_fence->fence);
+#ifdef DEBUG
if (0 > ret)
trace_printk("Mali internal sync:fence signaled? ret=%d, fence 0x%p for sync_fence 0x%p.\n", ret, fence, sync_fence);
+#endif
if (1 == ret)
wake_up_all(&sync_fence->wq);
err = -1;
if (0 > err) {
+#ifdef DEBUG
trace_printk("Mali, line%d, signal error\n", __LINE__);
+#endif
return err;
}
#endif
if (0 != err) {
+#ifdef DEBUG
trace_printk("Mali, fence_add_callback error %d\n", err);
+#endif
if (-ENOENT == err)
err = 1;
return err;
__add_wait_queue_tail(&sync_fence->wq, &waiter->work);
spin_unlock_irqrestore(&sync_fence->wq.lock, flags);
+#ifdef DEBUG
if ((1 != err) && (0 != err))
trace_printk("Mali, line%d, signal error\n", __LINE__);
+#endif
return err;
#endif
#define GPU_CLK_DBG(fmt, arg...)
//disable print
-//#define _dev_info(...)
+#define _dev_info(...)
//static DEFINE_SPINLOCK(lock);
static mali_plat_info_t* pmali_plat = NULL;