Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218220
b: refs/heads/master
c: 4164743
h: refs/heads/master
v: v3
  • Loading branch information
Francesco Marella authored and Ben Skeggs committed Sep 24, 2010
1 parent 215eefc commit 62d915d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5e6a74436e378eb021a74f3e5f329eecf49d928e
refs/heads/master: 4164743c8249ef2867cf71ae2cb2380b5a550b06
4 changes: 2 additions & 2 deletions trunk/drivers/gpu/drm/nouveau/nouveau_temp.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ nouveau_nv40_sensor_setup(struct drm_device *dev)
msleep(5);

/* read */
return nv_rd32(dev, 0x0015b4);
return nv_rd32(dev, 0x0015b4) & 0x1fff;
}

s16
Expand All @@ -197,7 +197,7 @@ nouveau_temp_get(struct drm_device *dev)
if (dev_priv->chipset >= 0x50) {
core_temp = nv_rd32(dev, 0x20008);
} else {
core_temp = nv_rd32(dev, 0x0015b4);
core_temp = nv_rd32(dev, 0x0015b4) & 0x1fff;
/* Setup the sensor if the temperature is 0 */
if (core_temp == 0)
core_temp = nouveau_nv40_sensor_setup(dev);
Expand Down

0 comments on commit 62d915d

Please sign in to comment.