Module Name: src
Committed By: skrll
Date: Mon May 5 15:59:11 UTC 2014
Modified Files:
src/sys/external/bsd/common/include/linux: completion.h
Log Message:
Use a spinlock for completions. Makes vchiq pass LOCKDEBUG where other
spinlocks where held when trying to use the completion API.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/sys/external/bsd/common/include/linux/completion.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/common/include/linux/completion.h
diff -u src/sys/external/bsd/common/include/linux/completion.h:1.2 src/sys/external/bsd/common/include/linux/completion.h:1.3
--- src/sys/external/bsd/common/include/linux/completion.h:1.2 Tue Apr 1 15:19:37 2014
+++ src/sys/external/bsd/common/include/linux/completion.h Mon May 5 15:59:11 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: completion.h,v 1.2 2014/04/01 15:19:37 riastradh Exp $ */
+/* $NetBSD: completion.h,v 1.3 2014/05/05 15:59:11 skrll Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@ static inline void
init_completion(struct completion *completion)
{
- mutex_init(&completion->c_lock, MUTEX_DEFAULT, IPL_NONE);
+ mutex_init(&completion->c_lock, MUTEX_DEFAULT, IPL_VM);
cv_init(&completion->c_cv, "lnxcmplt");
completion->c_done = 0;
}