summaryrefslogtreecommitdiff
path: root/tests/kms_flip.c
diff options
context:
space:
mode:
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>2020-06-24 11:11:30 +0530
committerRamalingam C <ramalingam.c@intel.com>2020-06-26 14:36:44 +0530
commitaf1ef32bfae90bcdbaf1b5d84c61ff4e04368505 (patch)
tree7a7b85fa43e624fee822633bc669569569da836b /tests/kms_flip.c
parent66e2683a03a62828d3480dd0f6f235a72a34ff8c (diff)
lib: Use generic names for APIs that handle uevents
The functions for handling uevents are named with "_hotplug" as suffix such as igt_watch_hotplug(). Earlier hotplug was the only uevent that was requested to be detected, but in fact, these APIs are generic and can be used for detecting other uevents too. Currently we have tests like kms_lease, kms_content_protection using the uevent handling infrastructure for detecting uevents other than hotplug. This patch renames the functions and replace the "_hotplug" suffix with "_uevents". v2: Rebase v3: Added changes in lib igt_chamelium.c, that was missed earlier. Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Suggested-by: Ramalingam C <ramalingam.c@intel.com> Suggested-by: Hiler, Arkadiusz <arkadiusz.hiler@intel.com> Reviewed-by: Ramalingam C <ramalingam.c@intel.com> Acked-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Diffstat (limited to 'tests/kms_flip.c')
-rwxr-xr-xtests/kms_flip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/kms_flip.c b/tests/kms_flip.c
index b7b42f85..3a7314ad 100755
--- a/tests/kms_flip.c
+++ b/tests/kms_flip.c
@@ -1212,7 +1212,7 @@ static void calibrate_ts(struct test_output *o, int crtc_idx)
static void __run_test_on_crtc_set(struct test_output *o, int *crtc_idxs,
int crtc_count, int duration_ms)
{
- struct udev_monitor *mon = igt_watch_hotplug();
+ struct udev_monitor *mon = igt_watch_uevents();
unsigned bo_size = 0;
bool vblank = true;
bool retried = false;
@@ -1261,7 +1261,7 @@ static void __run_test_on_crtc_set(struct test_output *o, int *crtc_idxs,
retry:
kmstest_unset_all_crtcs(drm_fd, resources);
- igt_flush_hotplugs(mon);
+ igt_flush_uevents(mon);
if (set_mode(o, o->fb_ids[0], 0, 0)) {
/* We may fail to apply the mode if there are hidden
@@ -1351,7 +1351,7 @@ out:
free_test_output(o);
- igt_cleanup_hotplug(mon);
+ igt_cleanup_uevents(mon);
}
static void run_test_on_crtc_set(struct test_output *o, int *crtc_idxs,