From: Ville Syrjälä Date: Wed, 26 Jun 2013 14:43:24 +0000 (+0300) Subject: drm/i915: Use wait_for() to wait for Punit to change GPU freq on VLV X-Git-Tag: v3.12-rc1~136^2~165^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8474409d7ab6dac38d4a3a6a365504b302f6c16;p=pandora-kernel.git drm/i915: Use wait_for() to wait for Punit to change GPU freq on VLV Use wait_for() instead of the open coded loop to avoid spreading the same old timeout related bugs. This changes the loop to use msleep(1) instead of udelay(10) when the Punit had not yet completed the frequency change. In practice that doesn't seem to hurt performance as the Punit appears to be ready pretty much always. Also give the status bit a name, instead of using the magic number 1. Signed-off-by: Ville Syrjälä Reviewed-by: Jesse Barnes Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed