diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-09-16 16:47:14 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-09-24 16:27:20 +1000 |
commit | 6f876986bedf23b40ab707543e88fae7eac27f1f (patch) | |
tree | 8b0176d16bc5ea891e1367ef9accda53a753a568 /drivers/gpu/drm/nouveau/nv04_pm.c | |
parent | 442b626ece6fbbe7f52c03a09f85ae5755f29eab (diff) | |
download | blackbird-op-linux-6f876986bedf23b40ab707543e88fae7eac27f1f.tar.gz blackbird-op-linux-6f876986bedf23b40ab707543e88fae7eac27f1f.zip |
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.c | 2 |
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) ret = get_pll_limits(dev, id, &state->pll); if (ret) { kfree(state); - return ERR_PTR(ret); + return (ret == -ENOENT) ? NULL : ERR_PTR(ret); } ret = nouveau_calc_pll_mnp(dev, &state->pll, khz, &state->calc); |