]> git.baikalelectronics.ru Git - kernel.git/commit
uml: use barrier() instead of mb()
authorJeff Dike <jdike@addtoit.com>
Tue, 5 Feb 2008 06:31:09 +0000 (22:31 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 5 Feb 2008 17:44:29 +0000 (09:44 -0800)
commit47b99aea0412ba4515c586711dcacb7e836f214c
tree3580fd114bcef42a898c838f5a58ddcb2d29ae99
parent7808fb964fc8ddf803fc2907307ff4e973f4ab15
uml: use barrier() instead of mb()

signals_enabled and pending have requirements on the order in which they are
modified.  This used to be done by declaring them volatile and putting an mb()
where the ordering requirements were in effect.

After getting a better (I hope) understanding of how to do this correctly, the
volatile declarations are gone and the mb()'s replaced by barrier()'s.

One of the mb()'s was deleted because I see no problematic writes that could
be re-ordered past that point.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/os-Linux/signal.c