diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2017-02-07 16:01:07 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2017-02-07 16:01:07 +0000 |
commit | 3c798b2b1f7ff7866cfd267d8f065df3ed64c751 (patch) | |
tree | 83bea695801c960db9ce2ccc53f4b307f14e53b1 /sys/kern/subr_lock.c | |
parent | 9f0b20a57c6e918c8c314ff5b43c177c1205c32e (diff) | |
download | src-3c798b2b1f7ff7866cfd267d8f065df3ed64c751.tar.gz src-3c798b2b1f7ff7866cfd267d8f065df3ed64c751.zip |
locks: follow up r313386
Unfinished diff was committed by accident. The loop in lock_delay
was changed to decrement, but the loop iterator was still incrementing.
Notes
Notes:
svn path=/head/; revision=313390
Diffstat (limited to 'sys/kern/subr_lock.c')
-rw-r--r-- | sys/kern/subr_lock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_lock.c b/sys/kern/subr_lock.c index 2ed5fdb6bb72..8584525922fd 100644 --- a/sys/kern/subr_lock.c +++ b/sys/kern/subr_lock.c @@ -128,7 +128,7 @@ lock_delay(struct lock_delay_arg *la) if (__predict_false(la->delay > lc->max)) la->delay = lc->max; - for (i = la->delay; i > 0; i++) + for (i = la->delay; i > 0; i--) cpu_spinwait(); la->spin_cnt += la->delay; |