]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Split watermark level computation from the code
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 6 Aug 2013 19:24:02 +0000 (22:24 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 8 Aug 2013 12:04:53 +0000 (14:04 +0200)
commitcdd2613bde8e900bfa0fccd763a06dc2c0d0485a
tree30a9d7b9fa17aebc9cf033decad43b4ec0f5ff9f
parentc4e00f72521cb7149d67e3f4dc4e9a047bdaf6a4
drm/i915: Split watermark level computation from the code

Refactor the watermarks computation for one level to a separate
function. This function will now set the ->enable flag to true,
even if the watermark level wasn't actually checked yet. In the
future we will delay the checking so we must consider all unchecked
watermarks as possibly valid.

v2: Preserve comment about latency units

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.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