Commit 1290f52b authored by Linus Torvalds's avatar Linus Torvalds

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).
parent edf12049
......@@ -32,8 +32,8 @@ do { \
#define preempt_enable_no_resched() \
do { \
dec_preempt_count(); \
barrier(); \
dec_preempt_count(); \
} while (0)
#define preempt_check_resched() \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment