drm/kms/radeon: Reorder vblank and pageflip interrupt handling.
authorMario Kleiner <mario.kleiner@tuebingen.mpg.de>
Sun, 21 Nov 2010 15:59:02 +0000 (10:59 -0500)
committerDave Airlie <airlied@redhat.com>
Mon, 22 Nov 2010 01:51:27 +0000 (11:51 +1000)
commit3e4ea7421f45966c93c8cbe81569e8dc93a58b87
tree9a27cb7455aeed88a1ccaa0ec6d234b606c480f6
parent6f34be50bd1bdd2ff3c955940e033a80d05f248a
drm/kms/radeon: Reorder vblank and pageflip interrupt handling.

In the vblank irq handler, calls to actual vblank handling,
or at least drm_handle_vblank(), need to happen before
calls to radeon_crtc_handle_flip().

Reason: The high precision pageflip timestamping
and some other pageflip optimizations will need the updated
vblank count and timestamps for the current vblank interval.

These are calculated in drm_handle_vblank(), therefore it
must go first.

Signed-off-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/evergreen.c
drivers/gpu/drm/radeon/r100.c
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/rs600.c