mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-20 02:34:23 +08:00
drm/i915: Make the rps new_delay comparison more readable
Eliminate the weird inverted logic from the rps new_delay comparison. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
80814ae4da
commit
d8289c9e7b
@ -707,8 +707,8 @@ static void gen6_pm_rps_work(struct work_struct *work)
|
|||||||
/* sysfs frequency interfaces may have snuck in while servicing the
|
/* sysfs frequency interfaces may have snuck in while servicing the
|
||||||
* interrupt
|
* interrupt
|
||||||
*/
|
*/
|
||||||
if (!(new_delay > dev_priv->rps.max_delay ||
|
if (new_delay >= dev_priv->rps.min_delay &&
|
||||||
new_delay < dev_priv->rps.min_delay)) {
|
new_delay <= dev_priv->rps.max_delay) {
|
||||||
if (IS_VALLEYVIEW(dev_priv->dev))
|
if (IS_VALLEYVIEW(dev_priv->dev))
|
||||||
valleyview_set_rps(dev_priv->dev, new_delay);
|
valleyview_set_rps(dev_priv->dev, new_delay);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user