summaryrefslogtreecommitdiff
path: root/lib/igt_debugfs.c
diff options
context:
space:
mode:
authorArkadiusz Hiler <arkadiusz.hiler@intel.com>2017-11-24 17:17:47 +0200
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2017-11-29 15:09:25 +0200
commit430946d0b8814dd755c29adb0b38b55c4703d072 (patch)
treefe2497b65427bc4ad3799abe176040feb6b22436 /lib/igt_debugfs.c
parent380cc811486ba3fefbe3ebe4761afa7e169dcd3e (diff)
igt: Remove Android support
This patch gets rid of the Android support, deleting all the hacks and moving code around to the places it belongs. Android build is not really maintained properly and rots rather fast. With recent push for Meson here and Android going for Soong it will only accelerate. It's a good time to drop the illusion of providing any support. Cc: Daniel Vetter <daniel.vetter@intel.com> Cc: Kalyan Kondapally <kalyan.kondapally@intel.com> Cc: Petri Latvala <petri.latvala@intel.com> Cc: Radoslaw Szwichtenberg <radoslaw.szwichtenberg@intel.com> Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Acked-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'lib/igt_debugfs.c')
-rw-r--r--lib/igt_debugfs.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c
index 5670099f..9af8a593 100644
--- a/lib/igt_debugfs.c
+++ b/lib/igt_debugfs.c
@@ -990,30 +990,7 @@ int igt_get_stable_obj_count(int driver)
obj_count = get_object_count(driver);
/* The test relies on the system being in the same state before and
* after the test so any difference in the object count is a result of
- * leaks during the test. gem_quiescent_gpu() mostly achieves this but
- * on android occasionally obj_count can still change briefly.
- * The loop ensures obj_count has remained stable over several checks
- */
-#ifdef ANDROID
- {
- int loop_count = 0;
- int prev_obj_count = obj_count;
- while (loop_count < 4) {
- usleep(200000);
- gem_quiescent_gpu(driver);
- obj_count = get_object_count(driver);
- if (obj_count == prev_obj_count) {
- loop_count++;
- } else {
- igt_debug("loop_count=%d, obj_count=%d, prev_obj_count=%d\n",
- loop_count, obj_count, prev_obj_count);
- loop_count = 0;
- prev_obj_count = obj_count;
- }
-
- }
- }
-#endif
+ * leaks during the test. */
return obj_count;
}