summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nouveau_volt.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-06-09 07:45:31 +0400
committerBen Skeggs <bskeggs@redhat.com>2011-09-20 10:01:02 +0400
commitc3450239c78a4ef6c10da13dfc18831f43dbe0c5 (patch)
tree57a7e350bf4e7e415c2eb8fc3ea3e2b17be65283 /drivers/gpu/drm/nouveau/nouveau_volt.c
parentb6fd41e29dea9c6753b1843a77e50433e6123bcb (diff)
downloadlinux-c3450239c78a4ef6c10da13dfc18831f43dbe0c5.tar.xz
drm/nouveau/pm: store voltage in microvolts
Instead of 10s of millivolts, to match fermi vbios. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_volt.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_volt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_volt.c b/drivers/gpu/drm/nouveau/nouveau_volt.c
index 75e872741d92..9eec27581b16 100644
--- a/drivers/gpu/drm/nouveau/nouveau_volt.c
+++ b/drivers/gpu/drm/nouveau/nouveau_volt.c
@@ -203,7 +203,7 @@ nouveau_volt_init(struct drm_device *dev)
entry = volt + headerlen;
for (i = 0; i < entries; i++, entry += recordlen) {
- voltage->level[i].voltage = entry[0];
+ voltage->level[i].voltage = entry[0] * 10000;
voltage->level[i].vid = entry[1] >> vidshift;
}
voltage->nr_level = entries;