mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
drm/i915: Collect more cdclk state under the same roof
Move the min_cdclk[] and min_voltage_level[] arrays under the rest of the cdclk state. And while at it provide a simple helper (intel_cdclk_clear_state()) to clear the state during the ww_mutex backoff dance. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200120174728.21095-6-ville.syrjala@linux.intel.com Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
#include <drm/drm_plane_helper.h>
|
||||
|
||||
#include "intel_atomic.h"
|
||||
#include "intel_cdclk.h"
|
||||
#include "intel_display_types.h"
|
||||
#include "intel_hdcp.h"
|
||||
#include "intel_psr.h"
|
||||
@@ -499,15 +500,13 @@ intel_atomic_state_alloc(struct drm_device *dev)
|
||||
void intel_atomic_state_clear(struct drm_atomic_state *s)
|
||||
{
|
||||
struct intel_atomic_state *state = to_intel_atomic_state(s);
|
||||
|
||||
drm_atomic_state_default_clear(&state->base);
|
||||
|
||||
state->dpll_set = state->modeset = false;
|
||||
state->global_state_changed = false;
|
||||
state->active_pipes = 0;
|
||||
memset(&state->min_cdclk, 0, sizeof(state->min_cdclk));
|
||||
memset(&state->min_voltage_level, 0, sizeof(state->min_voltage_level));
|
||||
memset(&state->cdclk.logical, 0, sizeof(state->cdclk.logical));
|
||||
memset(&state->cdclk.actual, 0, sizeof(state->cdclk.actual));
|
||||
state->cdclk.pipe = INVALID_PIPE;
|
||||
intel_cdclk_clear_state(state);
|
||||
}
|
||||
|
||||
struct intel_crtc_state *
|
||||
|
||||
Reference in New Issue
Block a user