]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: extract intel_display_power.h/c from intel_runtime_pm.h/c
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Fri, 31 May 2019 22:24:08 +0000 (15:24 -0700)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 4 Jun 2019 07:32:48 +0000 (08:32 +0100)
commit1773e63d68a3215f9cb7b0b5b3126777c1a53a38
treebf40e5e6e59b17e9b9db6e74b1bed6411059bc7d
parent46e8bebdc47c57fe86ff2051f3d2e28fdbaf9a82
drm/i915: extract intel_display_power.h/c from intel_runtime_pm.h/c

Keep all the device-level PM management in intel_runtime_pm.h/c and move
all the display specific bits into their own file. Also add the new
header to Makefile.header-test.

Apart from the giant code move, the only difference is with the
intel_runtime_<get/put>_raw() functions, which are now exposed in the
header. The _put() version is also not conditionally compiled anymore
since it is ok to always pass the wakeref taken from the _get() to
__intel_runtime_pm_put (it is -1 if tracking is disabled).

Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Imre Deak <imre.deak@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190531222409.9177-2-daniele.ceraolospurio@intel.com
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/Makefile.header-test
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_display_power.c [new file with mode: 0644]
drivers/gpu/drm/i915/intel_display_power.h [new file with mode: 0644]
drivers/gpu/drm/i915/intel_runtime_pm.c
drivers/gpu/drm/i915/intel_runtime_pm.h