From: Mario Kleiner Date: Mon, 21 Feb 2011 04:42:01 +0000 (+0100) Subject: drm/vblank: Use memory barriers optimized for atomic_t instead of generics. X-Git-Tag: v2.6.38-rc7~48^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc21512835a72bc1eab7abd7d8a1bff0435591d7;p=pandora-kernel.git drm/vblank: Use memory barriers optimized for atomic_t instead of generics. 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 Signed-off-by: Dave Airlie --- Reading git-diff-tree failed