]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/debugfs: Improve .show() helper for GT-based attributes
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 19 Sep 2025 16:04:30 +0000 (18:04 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 23 Sep 2025 18:04:15 +0000 (20:04 +0200)
commit0ab7747c2dcea1843dc54533122e577f96ec0223
tree666c6d80aa06ae3dd1d9ba4382defaaa78590161
parent126d33f6711a4e8dc9613a146932e81a988b3dc2
drm/xe/debugfs: Improve .show() helper for GT-based attributes

Like we did for tile-based attributes, introduce separate show()
helper that implicitly takes an RPM reference prior to the call
to the actual print() function. This translates into some savings.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://lore.kernel.org/r/20250919160430.573-3-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_gt_debugfs.c
drivers/gpu/drm/xe/xe_gt_debugfs.h