drm/nouveau/therm: force a minimum hysteresis on temperature alarm thresholds
authorMartin Peres <martin.peres@labri.fr>
Sat, 8 Dec 2012 13:00:38 +0000 (14:00 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 20 Feb 2013 06:00:30 +0000 (16:00 +1000)
commit3600ad5e1b343f2c259901f736c717f5bc4deb50
tree09d491e27b43fecc16f4cd7bf66420717565a46f
parentf1aa4a1de5e13b794a7e31efc0b3ddcda6926c56
drm/nouveau/therm: force a minimum hysteresis on temperature alarm thresholds

This should avoid the situation where a user gets its kernel logs flooded when
temperature oscillates around a threshold with 0°C hysteresis.

This patch is just meant to fix broken vbios (as reported on a nv4e on
sysfs hwmon interface.

Signed-off-by: Martin Peres <martin.peres@labri.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/therm/temp.c