diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-09-16 10:47:14 +0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-09-24 10:27:20 +0400 |
commit | 6f876986bedf23b40ab707543e88fae7eac27f1f (patch) | |
tree | 8b0176d16bc5ea891e1367ef9accda53a753a568 /drivers/gpu/drm/nouveau/nv50_pm.c | |
parent | 442b626ece6fbbe7f52c03a09f85ae5755f29eab (diff) | |
download | linux-6f876986bedf23b40ab707543e88fae7eac27f1f.tar.xz |
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/nv50_pm.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nv50_pm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_pm.c b/drivers/gpu/drm/nouveau/nv50_pm.c index a616e4240346..64bc29c39c3a 100644 --- a/drivers/gpu/drm/nouveau/nv50_pm.c +++ b/drivers/gpu/drm/nouveau/nv50_pm.c @@ -80,7 +80,7 @@ nv50_pm_clock_pre(struct drm_device *dev, u32 id, int khz) ret = get_pll_limits(dev, id, &state->pll); if (ret < 0) { kfree(state); - return ERR_PTR(ret); + return (ret == -ENOENT) ? NULL : ERR_PTR(ret); } ret = nv50_calc_pll(dev, &state->pll, khz, &state->N, &state->M, |