summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2013-05-24 00:03:17 +0200
committerRichard Braun <rbraun@sceen.net>2013-05-24 00:03:17 +0200
commitb6b7c519edefe21b43e816f7e6d48fdb70f1eb8d (patch)
tree297fe0b92579f9d8d9d0a5521b7ca1bf91a6d831
parenta166a652577dbc8bb07896faf8dfe4b112d450df (diff)
kern/llsync: fix deadlock
-rw-r--r--kern/llsync.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/kern/llsync.c b/kern/llsync.c
index 05cd2318..d43bcefd 100644
--- a/kern/llsync.c
+++ b/kern/llsync.c
@@ -261,10 +261,8 @@ llsync_commit_checkpoint(unsigned int cpu)
spinlock_lock_intr_save(&llsync_lock, &flags);
- if (!bitmap_test(llsync_registered_cpus, cpu))
- return;
-
- llsync_commit_checkpoint_common(cpu);
+ if (bitmap_test(llsync_registered_cpus, cpu))
+ llsync_commit_checkpoint_common(cpu);
spinlock_unlock_intr_restore(&llsync_lock, flags);
}