drm/i915/gt: Reflect the true and current status of rc6_enable
authorJuan Escamilla <jcescami@wasd.net>
Tue, 16 Jan 2024 17:29:19 +0000 (09:29 -0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 24 Jan 2024 20:33:06 +0000 (15:33 -0500)
commit4104e634bba446a7b32b4accc980d97dde849f0d
tree0ddbd1ca0175f377a1b03011e971268494668a42
parent6d46d09a0d7dd412c5b76f74f89fe4448ba2117e
drm/i915/gt: Reflect the true and current status of rc6_enable

The sysfs file is named 'enabled', thus users might want to know the
true state of the RC6 instead of only the indication if the RC6
should be enabled.

Let's use rc6.enable directly instead of rc6.supported.

Signed-off-by: Juan Escamilla <jcescami@wasd.net>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240116172922.3460695-1-jcescami@wasd.net
drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c