RISCV uses CAS-style MCS-PDR locks
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 8 May 2013 00:44:09 +0000 (17:44 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 8 May 2013 00:44:09 +0000 (17:44 -0700)
user/parlib/mcs.c

index 85d6b03..5616d33 100644 (file)
@@ -329,11 +329,7 @@ void __mcs_pdr_unlock_no_cas(struct mcs_pdr_lock *lock,
 
 void mcs_pdr_unlock(struct mcs_pdr_lock *lock, struct mcs_pdr_qnode *qnode)
 {
-#ifndef __riscv__
        __mcs_pdr_unlock(lock, qnode);
-#else
-       __mcs_pdr_unlock_no_cas(lock, qnode);
-#endif
        /* Enable notifs, if we're an _M uthread */
        uth_enable_notifs();
 }