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).
Showing
Please register or sign in to comment