From: Damien Lespiau <damien.lespiau@intel.com>
To: ville.syrjala@linux.intel.com
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: s/9/intel_freq_opcode(450)/
Date: Thu, 26 Mar 2015 14:17:25 +0000 [thread overview]
Message-ID: <20150326141725.GC14232@strange.ger.corp.intel.com> (raw)
In-Reply-To: <1427304436-11981-1-git-send-email-ville.syrjala@linux.intel.com>
On Wed, Mar 25, 2015 at 07:27:16PM +0200, ville.syrjala@linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Replace the hardcoded 9 with a call to intel_freq_opcode(450).
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@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@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2015-03-26 14:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-25 17:27 [PATCH] drm/i915: s/9/intel_freq_opcode(450)/ ville.syrjala
2015-03-26 7:16 ` shuang.he
2015-03-26 14:17 ` Damien Lespiau [this message]
2015-05-06 14:34 ` Daniel Vetter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150326141725.GC14232@strange.ger.corp.intel.com \
--to=damien.lespiau@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=ville.syrjala@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox