aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_rmlock.c
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2009-12-25 21:14:05 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2009-12-25 21:14:05 +0000
commite4ff598ec66d03a562bdf8dc7bb9ec4535a5adc4 (patch)
tree9e544687c59903a1df912a6bec30bfcded6556c1 /sys/kern/kern_rmlock.c
parent8da45f2c6e96b1f061e2db836586a1f41b03f2aa (diff)
downloadsrc-e4ff598ec66d03a562bdf8dc7bb9ec4535a5adc4.tar.gz
src-e4ff598ec66d03a562bdf8dc7bb9ec4535a5adc4.zip
Notes
Diffstat (limited to 'sys/kern/kern_rmlock.c')
-rw-r--r--sys/kern/kern_rmlock.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/kern/kern_rmlock.c b/sys/kern/kern_rmlock.c
index 21ef79d8300b..a6a622e141fc 100644
--- a/sys/kern/kern_rmlock.c
+++ b/sys/kern/kern_rmlock.c
@@ -147,7 +147,7 @@ rm_tracker_add(struct pcpu *pc, struct rm_priotracker *tracker)
next->rmq_prev = &tracker->rmp_cpuQueue;
/* Update pointer to first element. */
- pc->pc_rm_queue.rmq_next = &tracker->rmp_cpuQueue;
+ pc->pc_rm_queue.rmq_next = &tracker->rmp_cpuQueue;
}
static void inline
@@ -278,7 +278,7 @@ _rm_rlock_hard(struct rmlock *rm, struct rm_priotracker *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) {
+ queue != &pc->pc_rm_queue; queue = queue->rmq_next) {
atracker = (struct rm_priotracker *)queue;
if ((atracker->rmp_rmlock == rm) &&
(atracker->rmp_thread == tracker->rmp_thread)) {
@@ -337,7 +337,7 @@ _rm_rlock(struct rmlock *rm, struct rm_priotracker *tracker)
* Fast path to combine two common conditions into a single
* conditional jump.
*/
- if (0 == (td->td_owepreempt | rm->rm_noreadtoken))
+ if (0 == (td->td_owepreempt | rm->rm_noreadtoken))
return;
/* We do not have a read token and need to acquire one. */
@@ -413,7 +413,7 @@ _rm_wlock(struct rmlock *rm)
* before rm_cleanIPI is called.
*/
#ifdef SMP
- smp_rendezvous(smp_no_rendevous_barrier,
+ smp_rendezvous(smp_no_rendevous_barrier,
rm_cleanIPI,
smp_no_rendevous_barrier,
rm);
@@ -487,7 +487,7 @@ _rm_rlock_debug(struct rmlock *rm, struct rm_priotracker *tracker,
}
void
-_rm_runlock_debug(struct rmlock *rm, struct rm_priotracker *tracker,
+_rm_runlock_debug(struct rmlock *rm, struct rm_priotracker *tracker,
const char *file, int line)
{
@@ -526,7 +526,7 @@ _rm_rlock_debug(struct rmlock *rm, struct rm_priotracker *tracker,
}
void
-_rm_runlock_debug(struct rmlock *rm, struct rm_priotracker *tracker,
+_rm_runlock_debug(struct rmlock *rm, struct rm_priotracker *tracker,
const char *file, int line)
{