diff options
author | 2022-04-29 17:21:40 +0300 | |
---|---|---|
committer | 2022-05-02 11:37:10 +0300 | |
commit | c140915c00c92e3ca2a4f8e5748f0b9ef3e5a418 (patch) | |
tree | 978b47ef082221d3c612b6eafac8b639deddda0e /tools/perf/scripts/python/export-to-sqlite.py | |
parent | Merge tag 'gvt-next-2022-04-29' of https://github.com/intel/gvt-linux into drm-intel-next (diff) | |
download | linux-dev-c140915c00c92e3ca2a4f8e5748f0b9ef3e5a418.tar.xz linux-dev-c140915c00c92e3ca2a4f8e5748f0b9ef3e5a418.zip |
drm/i915: move tons of power well initializers to rodata
Using compound literals for initialization can be tricky. Lacking a
const qualifier, they won't end up in rodata, which is probably not
expected or intended. Add const to move a whopping 136 initializers to
rodata.
Compare:
$ objdump --syms drivers/gpu/drm/i915/display/intel_display_power_map.o | grep "\.rodata.*__compound_literal"
$ objdump --syms drivers/gpu/drm/i915/display/intel_display_power_map.o | grep "\.data.*__compound_literal"
Before and after the change.
Fixes: c32ffce42aa5 ("drm/i915: Convert the power well descriptor domain mask to an array of domains")
Fixes: 4a845ff0c0d4 ("drm/i915: Simplify power well definitions by adding power well instances")
Cc: Imre Deak <imre.deak@intel.com>
Cc: Jouni Högander <jouni.hogander@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220429142140.2671828-1-jani.nikula@intel.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions