]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/vlv: use correct units for rc6 residency v2
authorJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 27 Sep 2013 00:55:58 +0000 (17:55 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 1 Oct 2013 05:45:44 +0000 (07:45 +0200)
commitfc8f24984cf2cc2a81385e5fcfb2816cc5d1e5a5
treeb7d34646a994884941f515b452a8cad00839b431
parenta9034f8074ae9241075a0af1548ed97671104d8c
drm/i915/vlv: use correct units for rc6 residency v2

We need to use the clock control reg to figure out how many CZ clks are in
30ns and use that as the basis for our RC6 residency calculations.

v2: use ULL everywhere for consistency (Chris)
    factor out bias for clarity (Chris)

References: https://bugs.freedesktop.org/show_bug.cgi?id=69692
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/i915_sysfs.c