Re: [Intel-gfx] [PATCH 04/10] drm/i915: Constify power well descriptors

2018-08-02 Thread Paulo Zanoni
Em Qui, 2018-08-02 às 15:03 +0300, Imre Deak escreveu: > On Wed, Aug 01, 2018 at 02:39:31PM -0700, Paulo Zanoni wrote: > > Em Sex, 2018-07-20 às 17:14 +0300, Imre Deak escreveu: > > > It makes sense to keep unchanging data const. Extract such fields > > > from > > > the i915_power_well struct into

Re: [Intel-gfx] [PATCH 04/10] drm/i915: Constify power well descriptors

2018-08-02 Thread Imre Deak
On Wed, Aug 01, 2018 at 02:39:31PM -0700, Paulo Zanoni wrote: > Em Sex, 2018-07-20 às 17:14 +0300, Imre Deak escreveu: > > It makes sense to keep unchanging data const. Extract such fields > > from > > the i915_power_well struct into a new i915_power_well_desc struct > > that > > we initialize duri

Re: [Intel-gfx] [PATCH 04/10] drm/i915: Constify power well descriptors

2018-08-01 Thread Paulo Zanoni
Em Sex, 2018-07-20 às 17:14 +0300, Imre Deak escreveu: > It makes sense to keep unchanging data const. Extract such fields > from > the i915_power_well struct into a new i915_power_well_desc struct > that > we initialize during compile time. For the rest of the dynamic > fields allocate an array of

[Intel-gfx] [PATCH 04/10] drm/i915: Constify power well descriptors

2018-07-20 Thread Imre Deak
It makes sense to keep unchanging data const. Extract such fields from the i915_power_well struct into a new i915_power_well_desc struct that we initialize during compile time. For the rest of the dynamic fields allocate an array of i915_power_well objects in i915 dev_priv, and link to each of thes