Let's take the performance hit (cache flush) on UP and make it work on SMP too. ...
authorWim Taymans <wim.taymans@gmail.com>
Thu, 5 Sep 2002 22:21:45 +0000 (22:21 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Thu, 5 Sep 2002 22:21:45 +0000 (22:21 +0000)
Original commit message from CVS:
Let's take the performance hit (cache flush) on UP and make it work
on SMP too. (thanks to Cameron Hutchison)

gst/gstatomic.h

index d9bc881..a360802 100644 (file)
@@ -125,11 +125,7 @@ struct _GstAtomicSwap {
 
 #if defined (__i386__) && defined (__GNUC__) && __GNUC__ >= 2 
 
-# ifdef __SMP__
-#  define GST_ATOMIC_LOCK "lock ; "
-# else
-#  define GST_ATOMIC_LOCK ""
-# endif
+#define GST_ATOMIC_LOCK "lock ; "
 
 #define _GST_ATOMIC_SWAP_INIT(swap,val)                \
 G_STMT_START {                                         \