[Intel-gfx] [PATCH 2/3] drm/i915: rename gen8_init_clock_gating to broadwell_init_clock_gating

Damien Lespiau damien.lespiau at intel.com
Thu Aug 21 23:45:06 CEST 2014


On Thu, Aug 21, 2014 at 05:09:37PM -0300, Paulo Zanoni wrote:
> From: Paulo Zanoni <paulo.r.zanoni at intel.com>
> 
> Because CHV uses cherryview_init_clock_gating instead of
> gen8_init_clock_gating.
> 
> Signed-off-by: Paulo Zanoni <paulo.r.zanoni at intel.com>

Reviewed-by: Damien Lespiau <damien.lespiau at intel.com>

-- 
Damien

> ---
>  drivers/gpu/drm/i915/intel_pm.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> I really wish we were using the three-letter-acronyms instead of the full names
> on the functions. If I send another patch renaming everything, will anybody
> complain?
> 
> diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> index b3e948f..35495fc 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
> @@ -5502,7 +5502,7 @@ static void lpt_suspend_hw(struct drm_device *dev)
>  	}
>  }
>  
> -static void gen8_init_clock_gating(struct drm_device *dev)
> +static void broadwell_init_clock_gating(struct drm_device *dev)
>  {
>  	struct drm_i915_private *dev_priv = dev->dev_private;
>  	enum pipe pipe;
> @@ -7251,7 +7251,7 @@ void intel_init_pm(struct drm_device *dev)
>  		else if (IS_HASWELL(dev))
>  			dev_priv->display.init_clock_gating = haswell_init_clock_gating;
>  		else if (INTEL_INFO(dev)->gen == 8)
> -			dev_priv->display.init_clock_gating = gen8_init_clock_gating;
> +			dev_priv->display.init_clock_gating = broadwell_init_clock_gating;
>  	} else if (IS_CHERRYVIEW(dev)) {
>  		dev_priv->display.update_wm = cherryview_update_wm;
>  		dev_priv->display.update_sprite_wm = valleyview_update_sprite_wm;
> -- 
> 2.0.1
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx



More information about the Intel-gfx mailing list