[Intel-gfx] [PATCH v2 0/3] drm/i915: A couple of if/else ladder refactors

Lucas De Marchi lucas.demarchi at intel.com
Tue Sep 13 21:09:55 UTC 2022


Refactor code to follow the same convention as last platform first.  This
series includes one patch that had already been reviewed, for frequency read
and 2 more refactors.

v2: Fix patch 2 not considering intel_gt_check_clock_frequency() call to read
frequency (Gustavo)

Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>
---
Lucas De Marchi (3):
      drm/i915: Invert if/else ladder for frequency read
      drm/i915/gt: Extract per-platform function for frequency read
      drm/i915: Invert if/else ladder for stolen init

 drivers/gpu/drm/i915/gem/i915_gem_stolen.c     |  51 +++-----
 drivers/gpu/drm/i915/gt/intel_gt_clock_utils.c | 174 ++++++++++++-------------
 2 files changed, 97 insertions(+), 128 deletions(-)
---
base-commit: 088771790e5d121c70c358468abbebb4710eb02f
change-id: 20220908-if-ladder-df33a06d4f4e

Best regards,
-- 
Lucas De Marchi <lucas.demarchi at intel.com>


More information about the Intel-gfx mailing list