Re: [PATCH] drm/i915: s/9/intel_freq_opcode(450)/

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Reviewed-by: Damien Lespiau <damien.lespiau@xxxxxxxxx>

> ---
>  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@xxxxxxxxxxxxxxxxxxxxx
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx





[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux