summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>2018-05-09 10:37:35 -0700
committerPetri Latvala <petri.latvala@intel.com>2018-05-15 10:32:57 +0300
commitded16c09a1e538224ee06c072f39eece1d755727 (patch)
tree827042eacb6d5081ee13a82d07af9564d78bc560 /tests
parent1958e69f4689f189937b633775a0ee3323b3fdf4 (diff)
tests/psr: Rename psr_active() to psr_enabled()
psr_active() checks the debugfs flag "HW Enabled & Active bit", which only tells us if PSR was enabled by the driver. The state of PSR - active or inactive is different from this flag for DDI platforms, so rename the function appropriately. Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> Reviewed-by: Katarzyna Dec <katarzyna.dec@intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/kms_psr_sink_crc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c
index e55d2576..1657ee8a 100644
--- a/tests/kms_psr_sink_crc.c
+++ b/tests/kms_psr_sink_crc.c
@@ -203,7 +203,7 @@ static bool sink_support(data_t *data)
strstr(buf, "Sink_Support: yes\n");
}
-static bool psr_active(data_t *data)
+static bool psr_enabled(data_t *data)
{
char buf[512];
@@ -217,7 +217,7 @@ static bool wait_psr_entry(data_t *data)
{
int timeout = 5;
while (timeout--) {
- if (psr_active(data))
+ if (psr_enabled(data))
return true;
sleep(1);
}