]> git.baikalelectronics.ru Git - kernel.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)
commit0a05f60b7a02bc6bd909de2d0ce8a4eed247c9c0
tree317c2bfe1bbf9fa148cd7dde3b3ad443257ac11f
parente113c8ee00aed1bc1da92700b161390a7715481e
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