tests/pm_rps: Round requested freq correctly
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 7 Feb 2014 08:59:42 +0000 (09:59 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 7 Feb 2014 09:03:20 +0000 (10:03 +0100)
commitffc481b8acc22ee8bbbf142db5b74d99c6bde926
tree73b0c6c8e4a671273d76b9cdb1b1e57ac913b30c
parent0269d1da4999ecb39ea65120a052259b19372748
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>
tests/pm_rps.c