]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Save the old CDCLK atomic state
authorImre Deak <imre.deak@intel.com>
Wed, 20 Mar 2019 13:54:37 +0000 (15:54 +0200)
committerImre Deak <imre.deak@intel.com>
Wed, 3 Apr 2019 15:58:10 +0000 (18:58 +0300)
commita6c1371cdb8a0af4c69fd167f300a01bd1f922f1
treefd1d9bc5a3bd9a1da3b9efe5cbfafa891d256926
parent405f36d29da0e7d3c403a19d8a4fce0dfb7f6930
drm/i915: Save the old CDCLK atomic state

The old state will be needed by an upcoming patch to determine if the
commit increases or decreases CDCLK, so move the old state to the atomic
state (while keeping the new one in dev_priv). cdclk.logical and
cdclk.actual in the atomic state isn't used atm anywhere after the
atomic check phase, so this should be safe.

v2:
- Use swap() instead of opencoding it. (Ville)

Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190320135439.12201-2-imre.deak@intel.com
drivers/gpu/drm/i915/intel_cdclk.c
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h