]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe/sysfs: Use scope-based runtime power management
authorMatt Roper <matthew.d.roper@intel.com>
Tue, 18 Nov 2025 16:44:05 +0000 (08:44 -0800)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 19 Nov 2025 19:58:58 +0000 (11:58 -0800)
commitf50c11ba35da84450b3206b50618ecb6482968dc
treedaed89333fd76622f73e4b27ea4ca1f05073cb7d
parent3a344ddce25eb8b7cf63de8b5c54de10e5bb764f
drm/xe/sysfs: Use scope-based runtime power management

Switch sysfs to use scope-based runtime power management to slightly
simplify the code.

v2:
 - Drop unnecessary local variables.  (Gustavo)

Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Link: https://patch.msgid.link/20251118164338.3572146-55-matthew.d.roper@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/xe/xe_device_sysfs.c
drivers/gpu/drm/xe/xe_gt_freq.c
drivers/gpu/drm/xe/xe_gt_throttle.c
drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c