diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2022-09-13 14:09:57 -0700 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2022-09-14 17:32:39 -0700 |
commit | 1416b5473d34d89a85c02889b724f32b56ef12ea (patch) | |
tree | 065077f333833a604666ab385da2591511139716 /drivers/gpu/drm/i915/display/intel_cursor.c | |
parent | 29a051bd468cba31c227af579a7c57f250570cfa (diff) | |
download | linux-1416b5473d34d89a85c02889b724f32b56ef12ea.tar.bz2 |
drm/i915/gt: Extract per-platform function for frequency read
Instead of calling read_clock_frequency() to walk the if/else ladder
per platform, move the ladder to intel_gt_init_clock_frequency() and
use one function per branch.
With the new logic, it's now clear the call to
gen9_get_crystal_clock_freq() was just dead code, as gen9 is handled by
another function and there is no version 10. Remove that function and
the caller.
v2: Correctly handle intel_gt_check_clock_frequency() that also calls
the function to read clock frequency (Gustavo)
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Gustavo Sousa <gustavo.sousa@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220908-if-ladder-v2-2-7a7b15545c93@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_cursor.c')
0 files changed, 0 insertions, 0 deletions