From: Daniel Vetter Date: Fri, 7 Feb 2014 09:02:41 +0000 (+0100) Subject: tests/pm_rps: remove setfreq X-Git-Tag: intel-gpu-tools-1.6~115 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=971c7db2c81d0573caf1d35d70f48e6fdace90d0;p=platform%2Fupstream%2Fintel-gpu-tools.git tests/pm_rps: remove setfreq It's unused. Cc: Jeff McGee Signed-off-by: Daniel Vetter --- diff --git a/tests/pm_rps.c b/tests/pm_rps.c index 27e7587..3d374f9 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]);