Matthew Dillon f94f8efc61 Optimize two cases in the MP locking code. First, it is not necessary
to use a locked cmpexg when unlocking a lock that we already hold, since
      nobody else can touch the lock while we hold it.  Second, it is not
      necessary to use a locked cmpexg when locking a lock that we already
      hold, for the same reason.  These changes will allow MP locks to be used
      recursively without impacting performance.

      Modify two procedures that are called only by assembly and are already
      NOPROF entries to pass a critical argument in %edx instead of on the
      stack, removing a significant amount of code from the critical path
      as a consequence.

Reviewed by:	Alfred Perlstein <bright@wintelcom.net>, Peter Wemm <peter@netplex.com.au>
1999-11-19 22:47:19 +00:00
..
1999-11-13 20:58:17 +00:00
1999-11-08 09:59:17 +00:00
1999-11-02 22:40:15 +00:00
1999-11-19 13:13:28 +00:00
1999-11-18 09:07:30 +00:00
1999-11-15 23:16:06 +00:00
1999-10-29 17:28:09 +00:00
1999-11-18 09:07:30 +00:00
1999-11-13 20:58:17 +00:00
1999-10-29 18:09:36 +00:00
1999-11-18 18:02:44 +00:00
1999-11-14 13:54:44 +00:00