summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-01-06 10:19:03 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-01-06 10:21:40 +0000
commit51bb53663e2d0c57e9e40c1961d67ddc1e086be5 (patch)
tree8f678648411ebc9b184a236eca16da022d731197 /benchmarks
parent3c1362f0a6a930f874b7533cb0a03ba9177278b4 (diff)
benchmarks/gem_latency: Allow setting an infinite time
Well, 24000 years. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/gem_latency.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/benchmarks/gem_latency.c b/benchmarks/gem_latency.c
index 2c4d0ef9..72d58955 100644
--- a/benchmarks/gem_latency.c
+++ b/benchmarks/gem_latency.c
@@ -36,6 +36,7 @@
#include <string.h>
#include <fcntl.h>
#include <inttypes.h>
+#include <limits.h>
#include <errno.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
@@ -579,8 +580,8 @@ int main(int argc, char **argv)
case 't':
/* How long to run the benchmark for (seconds) */
time = atoi(optarg);
- if (time < 1)
- time = 1;
+ if (time < 0)
+ time = INT_MAX;
break;
case 'f':