diff options
author | Ville Syrjälä <[email protected]> | 2019-12-19 13:14:30 +0200 |
---|---|---|
committer | Ville Syrjälä <[email protected]> | 2019-12-20 23:41:21 +0200 |
commit | 216383e920e85f3c1d9772030a69c4dab7455f47 (patch) | |
tree | 59bbb18ed2080b2281a967767508d0b7f630ae98 /drivers/gpu/drm/i915/gt/intel_engine_pm.c | |
parent | a5e93b42f462fc87f884f12f5176b10dca5a3bf1 (diff) |
drm/i915: Introduce intel_crtc_state_alloc()
We have several places where we want to allocate a pristine
crtc state. Some of those currently call intel_crtc_state_reset()
to properly initialize all the non-zero defaults in the state, but
some places do not. Let's add intel_crtc_state_alloc() to do both
the alloc and the reset, and call that everywhere we need a fresh
crtc state.
v2: s/kzalloc/kmalloc/ since we memset() anyway (José)
Cc: José Roberto de Souza <[email protected]>
Cc: Manasi Navare <[email protected]>
Signed-off-by: Ville Syrjälä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: José Roberto de Souza <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/i915/gt/intel_engine_pm.c')
0 files changed, 0 insertions, 0 deletions