summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndi Shyti <andi.shyti@intel.com>2019-03-28 18:39:06 +0200
committerAndi Shyti <andi.shyti@intel.com>2019-05-13 02:17:40 +0300
commitaac267f15e42c687778c0e57fd6498f21dd0cdc7 (patch)
tree4009319bbad4ee865dcd7dfa1abfbc477ccbb722 /lib
parent54b15d7249475118000b029850eecfcb308212c1 (diff)
test: perf_pmu: use the gem_engine_topology library
Replace the legacy for_each_engine* defines with the ones implemented in the gem_engine_topology library. Use whenever possible gem_engine_can_store_dword() that checks class instead of flags. Now the __for_each_engine_class_instance and for_each_engine_class_instance are unused, remove them. Suggested-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Signed-off-by: Andi Shyti <andi.shyti@intel.com> Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/igt_gt.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/igt_gt.h b/lib/igt_gt.h
index 0b5c7fcb..77318e2a 100644
--- a/lib/igt_gt.h
+++ b/lib/igt_gt.h
@@ -119,11 +119,4 @@ void gem_require_engine(int gem_fd,
igt_require(gem_has_engine(gem_fd, class, instance));
}
-#define __for_each_engine_class_instance(e__) \
- for ((e__) = intel_execution_engines2; (e__)->name; (e__)++)
-
-#define for_each_engine_class_instance(fd__, e__) \
- for ((e__) = intel_execution_engines2; (e__)->name; (e__)++) \
- for_if (gem_has_engine((fd__), (e__)->class, (e__)->instance))
-
#endif /* IGT_GT_H */