when atomic increment does not working, use pcqueue lock
authorGengbin Zheng <gzheng@illinois.edu>
Fri, 27 Feb 2009 22:07:37 +0000 (22:07 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Fri, 27 Feb 2009 22:07:37 +0000 (22:07 +0000)
src/arch/net-darwin-x86/conv-mach-smp.h

index b0ae648914840d2449fc0300ff771939794efb85..c02f35b821e757bbe333cd9f097786e026b2a12f 100644 (file)
@@ -11,4 +11,6 @@
 
 #define CMK_MACOSX_PTHREAD_HACK                            1
 
-#define CMK_PCQUEUE_LOCK                                  1
+#if !CMK_GCC_X86_ASM || !CMK_GCC_X86_ASM_ATOMICINCREMENT
+#define CMK_PCQUEUE_LOCK                                   1
+#endif