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 19:59:39 +0300
commit61958227e3e5a07bab544825b99dbd572523750d (patch)
tree46e46edea23e0ac1caa0d01fb1bc5deaea493f99 /lib
parent274706aa07fcaf820535f14fc0579199079dd0b9 (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 */