cmm: provide lightweight smp_rmb/smp_wmb on PPC
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 22 Sep 2011 09:12:44 +0000 (05:12 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 22 Sep 2011 09:12:44 +0000 (05:12 -0400)
lwsync orders loads in cacheable memory with respect to other loads,
and stores in cacheable memory with respect to other stores.  Use it
to implement smp_rmb/smp_wmb.

The heavy-weight sync is still used for the "full" rmb/wmb operations,
as well as for smp_mb.

[ Edit by Mathieu Desnoyers: rephrased the comments around the memory
  barriers. ]

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>

No differences found
This page took 0.024295 seconds and 4 git commands to generate.