From: Ville Syrjälä Date: Fri, 23 Jan 2015 19:04:23 +0000 (+0200) Subject: drm/i915: Update PMINTRMSK on VLV/CHV after sysfs min/max freq change X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~75^2~8^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f745a80e34e749e8ef0ba7e694008a4d95447c70;p=pandora-kernel.git drm/i915: Update PMINTRMSK on VLV/CHV after sysfs min/max freq change Currently we don't call valleyview_set_rps() when changing the min/max limits through sysfs if the current frequency is still within the new limits. However that means we sometimes forget to update PMINTRMSK. Eg. if the current frequency is at the old minimum, and then we reduce the minum further we should then enable the 'down' interrupts in PMINTRMSK but currently we don't. Fix it up by always calling valleyview_set_rps() (just like we do for !vlv/chv platforms). This also allows the code to be simplified a bit. Signed-off-by: Ville Syrjälä Reviewed-by: Chris Wilson Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed