]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
powerpc: Add write barrier before enabling DTL flags
authorJeremy Kerr <jk@ozlabs.org>
Mon, 23 Mar 2009 16:55:08 +0000 (16:55 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 27 Mar 2009 05:58:23 +0000 (16:58 +1100)
commit82631f5dd114e52239fb3d1e270a49d37c088b46
treec56dd87c9659864f5a3bc5068c0cb877c39bc705
parent757c74d298dc8438760b8dea275c4c6e0ac8a77f
powerpc: Add write barrier before enabling DTL flags

Currently, we don't enforce any ordering for updates to the lppaca
when enabling dtl logging, so we may end up enabling logging before the
index fields have been established.

This change adds a smp_wmb() before doing the actual enable.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/dtl.c