diff options
author | rwatson <rwatson@FreeBSD.org> | 2009-12-25 01:16:24 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2009-12-25 01:16:24 +0000 |
commit | eec16f46a715a0f102f041149ae18e12031c6677 (patch) | |
tree | 9895941a2016a1a6d279b32cfb17b146d80b9869 /sys/kern/kern_rmlock.c | |
parent | 249833487790c0353bd9d9dd0d9bf0bb8a8f6fc3 (diff) | |
download | FreeBSD-src-eec16f46a715a0f102f041149ae18e12031c6677.zip FreeBSD-src-eec16f46a715a0f102f041149ae18e12031c6677.tar.gz |
Minor comment tweaks in rmlocks.
MFC after: 3 days
Diffstat (limited to 'sys/kern/kern_rmlock.c')
-rw-r--r-- | sys/kern/kern_rmlock.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/kern_rmlock.c b/sys/kern/kern_rmlock.c index b56de66..21ef79d 100644 --- a/sys/kern/kern_rmlock.c +++ b/sys/kern/kern_rmlock.c @@ -128,9 +128,9 @@ static struct mtx rm_spinlock; MTX_SYSINIT(rm_spinlock, &rm_spinlock, "rm_spinlock", MTX_SPIN); /* - * Add or remove tracker from per cpu list. + * Add or remove tracker from per-cpu list. * - * The per cpu list can be traversed at any time in forward direction from an + * The per-cpu list can be traversed at any time in forward direction from an * interrupt on the *local* cpu. */ static void inline @@ -257,7 +257,7 @@ _rm_rlock_hard(struct rmlock *rm, struct rm_priotracker *tracker) return; } - /* Remove our tracker from the per cpu list. */ + /* Remove our tracker from the per-cpu list. */ rm_tracker_remove(pc, tracker); /* Check to see if the IPI granted us the lock after all. */ @@ -274,8 +274,8 @@ _rm_rlock_hard(struct rmlock *rm, struct rm_priotracker *tracker) */ if ((rm->lock_object.lo_flags & LO_RECURSABLE) != 0) { /* - * Just grand the lock if this thread already have a tracker - * for this lock on the per cpu queue. + * Just grant the lock if this thread already has a tracker + * for this lock on the per-cpu queue. */ for (queue = pc->pc_rm_queue.rmq_next; queue != &pc->pc_rm_queue; queue = queue->rmq_next) { |