diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-02-07 09:59:42 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-02-07 10:03:20 +0100 |
commit | ffc481b8acc22ee8bbbf142db5b74d99c6bde926 (patch) | |
tree | 73b0c6c8e4a671273d76b9cdb1b1e57ac913b30c /tests/pm_rps.c | |
parent | 0269d1da4999ecb39ea65120a052259b19372748 (diff) |
tests/pm_rps: Round requested freq correctly
The kernel will round it, so if we don't we'll have a spurious
mismatch. Happens on my machine here with 650-1300MHz range, where the
midpoint is 975.
Cc: Jeff McGee <jeff.mcgee@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/pm_rps.c')
-rw-r--r-- | tests/pm_rps.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/pm_rps.c b/tests/pm_rps.c index 46703810..27e75875 100644 --- a/tests/pm_rps.c +++ b/tests/pm_rps.c @@ -350,6 +350,9 @@ static void min_max_config(void (*check)(void)) { int fmid = (origfreqs[RPn] + origfreqs[RP0]) / 2; + /* hw (and so kernel) currently rounds to 50 MHz ... */ + fmid = fmid / 50 * 50; + log("\nCheck original min and max...\n"); check(); |