tests/pm_rps: vlv: wait for freq to settle
authorImre Deak <imre.deak@intel.com>
Thu, 4 Dec 2014 14:40:19 +0000 (16:40 +0200)
committerImre Deak <imre.deak@intel.com>
Mon, 8 Dec 2014 10:36:28 +0000 (12:36 +0200)
commitaabf2d095269ae4cb8e77dd61e5c0c16e602c1d8
treec9bf03e82cc4cde78d517aed200ce5ce1fe2f92f
parent470071d4aba10f85b3728cf24acd792a273c1d28
tests/pm_rps: vlv: wait for freq to settle

At least on VLV when forcing a new GT frequency by writing to the
min/max freq sysfs entries the kernel doesn't wait until the new
frequency settles, so the subsequent readback check might fail. To fix
this wait until the current frequency is between the min/max values
using a 10ms timeout.

Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Imre Deak <imre.deak@intel.com>
tests/pm_rps.c