]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
drm/nouveau/fan: rewrite the fan tachometer driver to get more precision, faster
authorMartin Peres <martin.peres@labri.fr>
Sun, 2 Sep 2012 01:20:45 +0000 (03:20 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 3 Oct 2012 03:13:14 +0000 (13:13 +1000)
commitbf6546b4219d2b188529f3242efda4048f5b1b41
tree36c1d3d3c3becdcda11bfdda002dde40b8b2f4aa
parentaa1b9b4836a8ab093ec06b0780553566a5430da7
drm/nouveau/fan: rewrite the fan tachometer driver to get more precision, faster

The previous driver waited for 250ms to accumulate data. This version times a
complete fan rotation and extrapolates to RPM.

The fan rotational speed should now be read in less than 250ms (worst case)
and usually in less 50ms.

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