Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3cbe2d2e authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "staging: android: sync: Limit sync log dumping"

parents 9b965181 5ef49cfc
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@
#include "sync.h"

#define CREATE_TRACE_POINTS
#define SYNC_DUMP_TIME_LIMIT 7000
#include "trace/sync.h"

static const struct fence_ops android_fence_ops;
@@ -392,6 +393,8 @@ int sync_fence_wait(struct sync_fence *fence, long timeout)
		if (timeout) {
			pr_info("fence timeout on [%pK] after %dms\n", fence,
				jiffies_to_msecs(timeout));
			if (jiffies_to_msecs(timeout) >=
				SYNC_DUMP_TIME_LIMIT)
				sync_dump();
		}
		return -ETIME;