]> git.hungrycats.org Git - linux/commit
Put the compiler barrier() on the right side of the preemption
authorLinus Torvalds <torvalds@home.osdl.org>
Mon, 27 Oct 2003 00:35:23 +0000 (16:35 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 27 Oct 2003 00:35:23 +0000 (16:35 -0800)
commit1290f52b1008b26369909c1c642843bdc231a64c
tree3ec87aaab4fc0f18be26d0d411aecb161474f62c
parentedf12049eae51473bf5050646d9b9787ee648926
Put the compiler barrier() on the right side of the preemption
enable on UP-PREEMPT.

Without this, the enable could "migrate" up into the critical
region (on SMP, the actual spinlock would act as an additional
barrier and PREEMPT was ok).
include/linux/preempt.h