From abb1a7ec1ec792afb3c8b75d988acb55a5337286 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sun, 21 Mar 2004 17:41:12 +0000 Subject: [PATCH] use barrier() instead of mb() since it really is just memory --- comedi/drivers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comedi/drivers.c b/comedi/drivers.c index c41eb2c6..d0696911 100644 --- a/comedi/drivers.c +++ b/comedi/drivers.c @@ -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; -- 2.26.2