use barrier() instead of mb() since it really is just memory
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 21 Mar 2004 17:41:12 +0000 (17:41 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 21 Mar 2004 17:41:12 +0000 (17:41 +0000)
comedi/drivers.c

index c41eb2c6cb58e33e2dd50daefdc49141b56a87f4..d0696911ce112e84b517c32647c79f48a1dea6a9 100644 (file)
@@ -585,7 +585,7 @@ void comedi_buf_memcpy_to( comedi_async *async, unsigned int offset, const void
 
                write_ptr = 0;
        }
-       mb();
+       barrier();
 }
 
 void comedi_buf_memcpy_from(comedi_async *async, unsigned int offset,
@@ -597,7 +597,7 @@ void comedi_buf_memcpy_from(comedi_async *async, unsigned int offset,
        if( read_ptr >= async->prealloc_bufsz )
                read_ptr %= async->prealloc_bufsz;
 
-       mb();
+       barrier();
        while( nbytes )
        {
                unsigned int block_size;