drm/i915: s/9/intel_freq_opcode(450)/

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>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Ville Syrjälä 2015-03-25 19:27:16 +02:00 committed by Daniel Vetter
parent 9e45803465
commit 813b5e6971
1 changed files with 2 additions and 2 deletions

View File

@ -4295,8 +4295,8 @@ static void gen6_init_rps_frequencies(struct drm_device *dev)
if (dev_priv->rps.min_freq_softlimit == 0) { if (dev_priv->rps.min_freq_softlimit == 0) {
if (IS_HASWELL(dev) || IS_BROADWELL(dev)) if (IS_HASWELL(dev) || IS_BROADWELL(dev))
dev_priv->rps.min_freq_softlimit = dev_priv->rps.min_freq_softlimit =
/* max(RPe, 450 MHz) */ max_t(int, dev_priv->rps.efficient_freq,
max(dev_priv->rps.efficient_freq, (u8) 9); intel_freq_opcode(dev_priv, 450));
else else
dev_priv->rps.min_freq_softlimit = dev_priv->rps.min_freq_softlimit =
dev_priv->rps.min_freq; dev_priv->rps.min_freq;