aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nv04_pm.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2010-09-16 02:47:14 -0400
committerBen Skeggs <bskeggs@redhat.com>2010-09-24 02:27:20 -0400
commit6f876986bedf23b40ab707543e88fae7eac27f1f (patch)
tree8b0176d16bc5ea891e1367ef9accda53a753a568 /drivers/gpu/drm/nouveau/nv04_pm.c
parent442b626ece6fbbe7f52c03a09f85ae5755f29eab (diff)
drm/nouveau: allow static performance level setting
Guarded by a module parameter for the moment, read the code for the magic value which enables it. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv04_pm.c')
-rw-r--r--drivers/gpu/drm/nouveau/nv04_pm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nv04_pm.c b/drivers/gpu/drm/nouveau/nv04_pm.c
index 35c200eb476c..15e4b9029df8 100644
--- a/drivers/gpu/drm/nouveau/nv04_pm.c
+++ b/drivers/gpu/drm/nouveau/nv04_pm.c
@@ -50,7 +50,7 @@ nv04_pm_clock_pre(struct drm_device *dev, u32 id, int khz)
50 ret = get_pll_limits(dev, id, &state->pll); 50 ret = get_pll_limits(dev, id, &state->pll);
51 if (ret) { 51 if (ret) {
52 kfree(state); 52 kfree(state);
53 return ERR_PTR(ret); 53 return (ret == -ENOENT) ? NULL : ERR_PTR(ret);
54 } 54 }
55 55
56 ret = nouveau_calc_pll_mnp(dev, &state->pll, khz, &state->calc); 56 ret = nouveau_calc_pll_mnp(dev, &state->pll, khz, &state->calc);