Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/include/linux Implement destr...
details: https://anonhg.NetBSD.org/src/rev/75ef903828d6
branches: riastradh-drm2
changeset: 788538:75ef903828d6
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Sep 08 16:00:50 2013 +0000
description:
Implement destroy_completion in <linux/completion.h>.
diffstat:
sys/external/bsd/drm2/include/linux/completion.h | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diffs (26 lines):
diff -r 2d493d1cd329 -r 75ef903828d6 sys/external/bsd/drm2/include/linux/completion.h
--- a/sys/external/bsd/drm2/include/linux/completion.h Sun Sep 08 16:00:22 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/completion.h Sun Sep 08 16:00:50 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: completion.h,v 1.1.2.3 2013/07/24 03:29:43 riastradh Exp $ */
+/* $NetBSD: completion.h,v 1.1.2.4 2013/09/08 16:00:50 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -71,6 +71,16 @@
}
/*
+ * Destroy a completion object.
+ */
+static inline void
+destroy_completion(struct completion *completion)
+{
+ KASSERT(!cv_has_waiters(&completion->c_cv));
+ cv_destroy(&completion->c_cv);
+}
+
+/*
* Notify one waiter of completion, but not any future ones.
*/
static inline void
Home |
Main Index |
Thread Index |
Old Index