diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2021-01-23 23:17:30 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2021-01-23 23:18:31 +0000 |
commit | fd08f7196679b08fdac94a3f7a007a001f78304e (patch) | |
tree | 5473048e4a2bebe3c72f15bfb1e9f9af10facfd5 /tests | |
parent | 941b4de5877710f665f27e6bda090b725262d635 (diff) |
i915/sysfs_clients: Restore initialisation of 'old' in busy_one
Set old to 0 before using it for the first time.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/i915/sysfs_clients.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/i915/sysfs_clients.c b/tests/i915/sysfs_clients.c index ad6d55be..4d03c124 100644 --- a/tests/i915/sysfs_clients.c +++ b/tests/i915/sysfs_clients.c @@ -332,6 +332,7 @@ busy_one(int i915, int clients, const struct intel_execution_engine2 *e) igt_nsec_elapsed(memset(&tv, 0, sizeof(tv))); igt_spin_busywait_until_started(spin); + old = 0; for (int pass = 0; pass <= 10; pass++) { usleep(1500 >> pass); delay = igt_nsec_elapsed(&tv); |