Make "s_unlock" an inline function. (Inlining this function takes
less space than calling it. A callable version still exists for use by some assembly code.)
This commit is contained in:
parent
a6ad7c7f78
commit
e7dcbbe297
@ -22,7 +22,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: lock.h,v 1.6 1998/04/06 11:38:17 phk Exp $
|
||||
* $Id: lock.h,v 1.7 1999/07/12 15:02:51 kris Exp $
|
||||
*/
|
||||
|
||||
|
||||
@ -220,12 +220,18 @@ struct simplelock {
|
||||
void s_lock_init __P((struct simplelock *));
|
||||
void s_lock __P((struct simplelock *));
|
||||
int s_lock_try __P((struct simplelock *));
|
||||
void s_unlock __P((struct simplelock *));
|
||||
void ss_lock __P((struct simplelock *));
|
||||
void ss_unlock __P((struct simplelock *));
|
||||
void s_lock_np __P((struct simplelock *));
|
||||
void s_unlock_np __P((struct simplelock *));
|
||||
|
||||
/* inline simplelock functions */
|
||||
static __inline void
|
||||
s_unlock(struct simplelock *lkp)
|
||||
{
|
||||
lkp->lock_data = 0;
|
||||
}
|
||||
|
||||
/* global data in mp_machdep.c */
|
||||
extern struct simplelock imen_lock;
|
||||
extern struct simplelock cpl_lock;
|
||||
|
Loading…
x
Reference in New Issue
Block a user