[Intel-gfx] [PATCH 2/2] tests/pm_rps: remove setfreq

Daniel Vetter daniel.vetter at ffwll.ch
Fri Feb 7 10:03:34 CET 2014


It's unused.

Cc: Jeff McGee <jeff.mcgee at intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
---
 tests/pm_rps.c | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/tests/pm_rps.c b/tests/pm_rps.c
index 27e758755e3f..3d374f92f82d 100644
--- a/tests/pm_rps.c
+++ b/tests/pm_rps.c
@@ -110,17 +110,6 @@ static int do_writeval(FILE *filp, int val, int lerrno)
 #define writeval(filp, val) do_writeval(filp, val, 0)
 #define writeval_inval(filp, val) do_writeval(filp, val, EINVAL)
 
-static void setfreq(int val)
-{
-	if (val > readval(stuff[MAX].filp)) {
-		writeval(stuff[MAX].filp, val);
-		writeval(stuff[MIN].filp, val);
-	} else {
-		writeval(stuff[MIN].filp, val);
-		writeval(stuff[MAX].filp, val);
-	}
-}
-
 static void checkit(const int *freqs)
 {
 	igt_assert(freqs[MIN] <= freqs[MAX]);
-- 
1.8.1.4




More information about the Intel-gfx mailing list