diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-03-19 11:34:23 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-03-19 11:34:23 +0000 |
commit | cde54d41d41ecc698408ab4c1f6c1ed3bdcd939e (patch) | |
tree | d9413614165f0ac9fd7494467fa1480622305bc0 /sys/arch/i386 | |
parent | aead540ed22f539ba3dbfa37327af5dd4c8fe578 (diff) |
Reduces the noise around the global ``ticks'' variable by renaming
all the local ones to ``nticks''.
ok stefan@, deraadt@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/i386/lock_machdep.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/i386/i386/lock_machdep.c b/sys/arch/i386/i386/lock_machdep.c index 4d0fb1157da..3cc962a5730 100644 --- a/sys/arch/i386/i386/lock_machdep.c +++ b/sys/arch/i386/i386/lock_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lock_machdep.c,v 1.18 2015/05/30 08:41:30 kettenis Exp $ */ +/* $OpenBSD: lock_machdep.c,v 1.19 2016/03/19 11:34:22 mpi Exp $ */ /* $NetBSD: lock_machdep.c,v 1.1.2.3 2000/05/03 14:40:30 sommerfeld Exp $ */ /*- @@ -80,12 +80,12 @@ __mp_lock_spin(struct __mp_lock *mpl, u_int me) while (mpl->mpl_ticket != me) SPINLOCK_SPIN_HOOK; #else - int ticks = __mp_lock_spinout; + int nticks = __mp_lock_spinout; - while (mpl->mpl_ticket != me && --ticks > 0) + while (mpl->mpl_ticket != me && --nticks > 0) SPINLOCK_SPIN_HOOK; - if (ticks == 0) { + if (nticks == 0) { db_printf("__mp_lock(%p): lock spun out", mpl); Debugger(); } |