[Intel-gfx] [PATCH] drm/i915: s/9/intel_freq_opcode(450)/

Damien Lespiau damien.lespiau at intel.com
Thu Mar 26 07:17:25 PDT 2015


On Wed, Mar 25, 2015 at 07:27:16PM +0200, ville.syrjala at linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
> 
> Replace the hardcoded 9 with a call to intel_freq_opcode(450).
> 
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>

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

> ---
>  drivers/gpu/drm/i915/intel_pm.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> index 753a3af..ac5fff9 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
> @@ -4250,8 +4250,8 @@ static void gen6_init_rps_frequencies(struct drm_device *dev)
>  	if (dev_priv->rps.min_freq_softlimit == 0) {
>  		if (IS_HASWELL(dev) || IS_BROADWELL(dev))
>  			dev_priv->rps.min_freq_softlimit =
> -				/* max(RPe, 450 MHz) */
> -				max(dev_priv->rps.efficient_freq, (u8) 9);
> +				max_t(int, dev_priv->rps.efficient_freq,
> +				      intel_freq_opcode(dev_priv, 450));
>  		else
>  			dev_priv->rps.min_freq_softlimit =
>  				dev_priv->rps.min_freq;
> -- 
> 2.0.5
> 
> _______________________________________________
> 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