]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/i915/skl: Restructured the gen6_set_rps_thresholds function
authorAkash Goel <akash.goel@intel.com>
Fri, 6 Mar 2015 05:37:18 +0000 (11:07 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 17 Mar 2015 21:30:23 +0000 (22:30 +0100)
commit8a5864377b12b7c0a7a8e20cb33ef7ccc679d657
tree317c2bfe1bbf9fa148cd7dde3b3ad443257ac11f
parent5704195c3f3c04a00c16334a033b180f16db1f94
drm/i915/skl: Restructured the gen6_set_rps_thresholds function

Prior to SKL, the time period programmed in Up/Down EI & Up/Down
threshold registers was in units of 1.28 micro seconds. But for
SKL, the units have changed (1.333 micro seconds).
Have generalized the implementation of gen6_set_rps_thresholds function,
by removing the hard coding done in it as per 1.28 micro seconds.

v2: Renamed the local variables & removed superfluous comments (Chris)

Signed-off-by: Akash Goel <akash.goel@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c