diff options
| author | Gustavo Sousa <gustavo.sousa@intel.com> | 2024-11-08 09:57:11 -0300 |
|---|---|---|
| committer | Matt Roper <matthew.d.roper@intel.com> | 2024-11-08 09:54:01 -0800 |
| commit | 1e15bc5bd7665558f4296b4cc50a561460b9f236 (patch) | |
| tree | bc182e26cddf148dfb6f93ddd11f8076f982d996 /tools/perf/scripts/python/bin | |
| parent | drm/i915/dmc_wl: Get wakelock when disabling dynamic DC states (diff) | |
| download | linux-1e15bc5bd7665558f4296b4cc50a561460b9f236.tar.gz linux-1e15bc5bd7665558f4296b4cc50a561460b9f236.zip | |
drm/i915/dmc_wl: Use sentinel item for range tables
We are currently using ARRAY_SIZE() to iterate address ranges in
intel_dmc_wl_check_range(). In upcoming changes, we will be using more
than a single table and will extract the range checking logic into a
dedicated function that takes a range table as argument. As we will not
able to use ARRAY_SIZE() then, let's make range tables contain a
sentinel item at the end and use that instead of having to pass the size
as parameter in this future function.
Reviewed-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241108130218.24125-7-gustavo.sousa@intel.com
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
