]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/display: add display specific runtime PM wrappers
authorJani Nikula <jani.nikula@intel.com>
Thu, 20 Mar 2025 15:03:55 +0000 (17:03 +0200)
committerJani Nikula <jani.nikula@intel.com>
Fri, 21 Mar 2025 08:08:42 +0000 (10:08 +0200)
commit336c0eaed2bde68b592769e9cd9c12d76d2b4578
tree7536a6a01f6d994ebfb947ec2b738c3fff95f08c
parent09b9563e54415d51c7a3cb35e127e42a5419a0e5
drm/i915/display: add display specific runtime PM wrappers

Add display specific wrappers around the i915 and xe dedicated runtime
PM interfaces. There are no conversions here, just the wrappers.

Implement with_intel_display_rpm() without needing to provide a local
variable, which neatly narrows the scope and hides the type of the
wakeref cookie.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://lore.kernel.org/r/086b312367fa0fbd8de92e9764117aa7ff4a8cc5.1742483007.git.jani.nikula@intel.com
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/display/intel_display_rpm.c [new file with mode: 0644]
drivers/gpu/drm/i915/display/intel_display_rpm.h [new file with mode: 0644]
drivers/gpu/drm/xe/Makefile
drivers/gpu/drm/xe/display/xe_display_rpm.c [new file with mode: 0644]