From 51bb53663e2d0c57e9e40c1961d67ddc1e086be5 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 6 Jan 2016 10:19:03 +0000 Subject: benchmarks/gem_latency: Allow setting an infinite time Well, 24000 years. Signed-off-by: Chris Wilson --- benchmarks/gem_latency.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'benchmarks/gem_latency.c') 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 #include #include +#include #include #include #include @@ -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': -- cgit v1.2.3