diff options
author | Imre Deak <[email protected]> | 2022-11-14 14:22:44 +0200 |
---|---|---|
committer | Imre Deak <[email protected]> | 2022-11-18 17:27:53 +0200 |
commit | 7ed310025e75826f74f6b3587047118e7176b409 (patch) | |
tree | 0cb4156340f92c0c3217bbab032d91feb4575740 /tools/perf/util/c++/clang.cpp | |
parent | 10b85f0e1d922210ae857afed6d012ec32c4b6cb (diff) |
drm/i915: Preallocate the debug power domain wakerefs array
Since the current size of intel_display_power_domain_set struct is
close to 1kB, it's better to use preallocated memory for it. The only
user of the intel_display_power_get/put_in_set() allocating the struct
on stack is hsw_get_pipe_config(), so we can avoid potential stack
overallocations by moving the struct here to the preallocated
intel_crtc struct (hsw_get_pipe_config() is non-reentrant wrt. each
CRTC).
This patch replaces
https://lore.kernel.org/intel-gfx/[email protected]/T/#md3f6cdf17fcd
Suggested-by: Ville Syrjälä <[email protected]>
Cc: Ville Syrjälä <[email protected]>
Cc: Jani Nikula <[email protected]>
Signed-off-by: Imre Deak <[email protected]>
Reviewed-by: Ville Syrjälä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions