Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361529
b: refs/heads/master
c: 98ee7c7
h: refs/heads/master
i:
  361527: fe8a405
v: v3
  • Loading branch information
Martin Peres authored and Ben Skeggs committed Mar 18, 2013
1 parent 108b419 commit 20aba00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 76c0295c389ad9ba19b668b5974cdd90eb95788e
refs/heads/master: 98ee7c7c63f16e443f51abf08e5412f8eb44ad1e
5 changes: 5 additions & 0 deletions trunk/drivers/gpu/drm/nouveau/core/subdev/therm/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ nouveau_therm_fan_mode(struct nouveau_therm *therm, int mode)
(mode != NOUVEAU_THERM_CTRL_NONE && device->card_type >= NV_C0))
return -EINVAL;

/* do not allow automatic fan management if the thermal sensor is
* not available */
if (priv->mode == 2 && therm->temp_get(therm) < 0)
return -EINVAL;

if (priv->mode == mode)
return 0;

Expand Down

0 comments on commit 20aba00

Please sign in to comment.