[PATCH 2/3] drm/vblank: Use memory barriers optimized for atomic_t instead of generics.

2011-02-21 Thread Mario Kleiner
Documentation/atomic_ops.txt tells us that there are memory barriers optimized for atomic_inc and other atomic_t ops. Use these instead of smp_wmb(), and also to make the required memory barriers around vblank counter increments more explicit. Signed-off-by: Mario Kleiner ---

[PATCH 2/3] drm/vblank: Use memory barriers optimized for atomic_t instead of generics.

2011-02-20 Thread Mario Kleiner
Documentation/atomic_ops.txt tells us that there are memory barriers optimized for atomic_inc and other atomic_t ops. Use these instead of smp_wmb(), and also to make the required memory barriers around vblank counter increments more explicit. Signed-off-by: Mario Kleiner