sync: don't log wait timeouts when timeout = 0
authorErik Gilling <konkers@android.com>
Mon, 4 Feb 2013 20:37:16 +0000 (12:37 -0800)
committer黄涛 <huangtao@rock-chips.com>
Fri, 22 Feb 2013 09:47:21 +0000 (17:47 +0800)
Signed-off-by: Erik Gilling <konkers@android.com>
drivers/base/sync.c

index 775cab546fe60bb9c99647803d01bcd57b9c0ae2..f35a975297f43723ebc4f03745fcb5ce88568ab0 100644 (file)
@@ -615,7 +615,7 @@ int sync_fence_wait(struct sync_fence *fence, long timeout)
                return fence->status;
        }
 
-       if (fence->status == 0) {
+       if (fence->status == 0 && timeout > 0) {
                pr_info("fence timeout on [%p] after %dms\n", fence,
                        jiffies_to_msecs(timeout));
                sync_dump();