From: Paulo Zanoni Date: Thu, 14 Nov 2013 15:40:52 +0000 (-0200) Subject: tests/pm_pc8: rename some variables X-Git-Tag: intel-gpu-tools-1.6~315 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a8610a4776e9bee9bf3fc275febaf78e3ec38c98;p=profile%2Fextras%2Fintel-gpu-tools.git tests/pm_pc8: rename some variables Since we're not only testing PC8 anymore, we're resting "PM", rename some variables from something_pc8 to something_suspend, just to make it not-so-confusing. Signed-off-by: Paulo Zanoni --- diff --git a/tests/pm_pc8.c b/tests/pm_pc8.c index 391f1db..0299ad9 100644 --- a/tests/pm_pc8.c +++ b/tests/pm_pc8.c @@ -797,29 +797,29 @@ static void modeset_subtest(enum screen_type type, int rounds, int wait_flags) * connected. */ static void drm_resources_equal_subtest(void) { - struct compare_data pre_pc8, during_pc8, post_pc8; + struct compare_data pre_suspend, during_suspend, post_suspend; enable_one_screen(&ms_data); igt_assert(wait_for_active()); - get_drm_info(&pre_pc8); + get_drm_info(&pre_suspend); igt_assert(wait_for_active()); disable_all_screens(&ms_data); igt_assert(wait_for_suspended()); - get_drm_info(&during_pc8); + get_drm_info(&during_suspend); igt_assert(wait_for_suspended()); enable_one_screen(&ms_data); igt_assert(wait_for_active()); - get_drm_info(&post_pc8); + get_drm_info(&post_suspend); igt_assert(wait_for_active()); - assert_drm_infos_equal(&pre_pc8, &during_pc8); - assert_drm_infos_equal(&pre_pc8, &post_pc8); + assert_drm_infos_equal(&pre_suspend, &during_suspend); + assert_drm_infos_equal(&pre_suspend, &post_suspend); - free_drm_info(&pre_pc8); - free_drm_info(&during_pc8); - free_drm_info(&post_pc8); + free_drm_info(&pre_suspend); + free_drm_info(&during_suspend); + free_drm_info(&post_suspend); } static void i2c_subtest_check_environment(void) @@ -859,11 +859,11 @@ static void i2c_subtest(void) * thing to do on Haswell, so don't do this test on the default case. */ static void register_compare_subtest(void) { - struct compare_registers pre_pc8, post_pc8; + struct compare_registers pre_suspend, post_suspend; enable_one_screen(&ms_data); igt_assert(wait_for_active()); - get_registers(&pre_pc8); + get_registers(&pre_suspend); igt_assert(wait_for_active()); disable_all_screens(&ms_data); @@ -872,10 +872,10 @@ static void register_compare_subtest(void) igt_assert(wait_for_active()); /* Wait for the registers to be restored. */ sleep(1); - get_registers(&post_pc8); + get_registers(&post_suspend); igt_assert(wait_for_active()); - compare_registers(&pre_pc8, &post_pc8); + compare_registers(&pre_suspend, &post_suspend); } static void read_full_file(const char *name)