drm/nouveau/tmr: calibrate for ns timestamps on init
authorBen Skeggs <bskeggs@redhat.com>
Sun, 3 Jul 2011 11:16:12 +0000 (21:16 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 20 Sep 2011 06:04:36 +0000 (16:04 +1000)
commit591b06d73bb8a2da879b1159342b8be192bf1119
tree0907df5bb26c726266d8313685fe3192ea33673f
parent16cd399c65bc68332a860b0b572079d0316df3ca
drm/nouveau/tmr: calibrate for ns timestamps on init

We previously assumed (incorrectly a lot of the time) that PTIMER would
be programmed at a frequency which'd give its 64-bit timestamps in
nanoseconds.

By programming PTIMER ourselves, we avoid this problem.

Reviewed-by: Martin Peres <martin.peres@ensi-bourges.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nv04_timer.c