]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/pmu: Drop redundant IS_VALLEYVIEW check in __get_rc6()
authorAshutosh Dixit <ashutosh.dixit@intel.com>
Mon, 14 Mar 2022 16:13:10 +0000 (09:13 -0700)
committerAnshuman Gupta <anshuman.gupta@intel.com>
Wed, 6 Apr 2022 10:17:38 +0000 (15:47 +0530)
commita310ba19c3c00c90667f92855bd7f97e7fecb734
tree6ad191c6ce4b5c755312b806093f4b526b7da1d4
parent8208b285556fda20c63228fadde2a0b87a98c89a
drm/i915/pmu: Drop redundant IS_VALLEYVIEW check in __get_rc6()

Because VLV_GT_RENDER_RC6 == GEN6_GT_GFX_RC6, the IS_VALLEYVIEW() check is
not needed. Neither is the check present in other code paths which call
intel_rc6_residency_ns() (in functions gen6_drpc(), rc6_residency() and
rc6_residency_ms_show()).

v2: Elimintate VLV_GT_RENDER_RC6 #define (Jani)

Cc: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Badal Nilawar <badal.nilawar@intel.com>
Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220314161310.6468-1-ashutosh.dixit@intel.com
drivers/gpu/drm/i915/gt/intel_gt_pm_debugfs.c
drivers/gpu/drm/i915/gt/intel_gt_regs.h
drivers/gpu/drm/i915/i915_pmu.c