From d517ee729ddbe2bb8a5c6cc10e7ce35d73a8bd82 Mon Sep 17 00:00:00 2001 From: Arkadiusz Hiler Date: Wed, 21 Jun 2017 10:15:41 +0300 Subject: Revert "igt/pm_rps: Remove remaining assert on CUR <= MAX" This reverts commit ae8d240b4d742a51f99e7fbe428392041aec160b. This constrain still should be in effect, as noted by Michal Winiarski. There's no client boost in the scenario when the check happens, so CUR freq should never exceed the MAX. Cc: Jeff Mcgee Cc: Radoslaw Szwichtenberg Cc: Michal Winiarski --- tests/pm_rps.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/pm_rps.c') diff --git a/tests/pm_rps.c b/tests/pm_rps.c index 1a322459..f0455e78 100644 --- a/tests/pm_rps.c +++ b/tests/pm_rps.c @@ -145,6 +145,7 @@ static int do_writeval(FILE *filp, int val, int lerrno, bool readback_check) static void checkit(const int *freqs) { igt_assert_lte(freqs[MIN], freqs[MAX]); + igt_assert_lte(freqs[CUR], freqs[MAX]); igt_assert_lte(freqs[RPn], freqs[CUR]); igt_assert_lte(freqs[RPn], freqs[MIN]); igt_assert_lte(freqs[MAX], freqs[RP0]); -- cgit v1.2.3