OSDN Git Service

vblank: Clean up compensation for spurious wraparounds of driver counter.
authorMichel Dänzer <michel@tungstengraphics.com>
Tue, 3 Jun 2008 09:28:10 +0000 (11:28 +0200)
committerMichel Dänzer <michel@tungstengraphics.com>
Tue, 3 Jun 2008 09:28:10 +0000 (11:28 +0200)
commit237172b7670611b36d92be3b92983674846f6564
treefd0715ad4ba06358b6c50298ed7881249cb2459b
parentd1dcb2b32e0c51d7cbcaa2ba1e0544452cf8f47b
vblank: Clean up compensation for spurious wraparounds of driver counter.

Only compensate when the driver counter actually appears to have moved
backwards.

The compensation deltas need to be incremental instead of absolute; drop the
vblank_offset field and just use atomic_sub().
linux-core/drmP.h
linux-core/drm_irq.c