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 Define spin_is_...
details: https://anonhg.NetBSD.org/src/rev/c0128542cc67
branches: riastradh-drm2
changeset: 788120:c0128542cc67
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 02:20:09 2013 +0000
description:
Define spin_is_locked in <linux/spinlock.h>.
diffstat:
sys/external/bsd/drm2/include/linux/spinlock.h | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 68f21fc9ebb0 -r c0128542cc67 sys/external/bsd/drm2/include/linux/spinlock.h
--- a/sys/external/bsd/drm2/include/linux/spinlock.h Wed Jul 24 02:19:53 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/spinlock.h Wed Jul 24 02:20:09 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spinlock.h,v 1.1.2.3 2013/07/24 02:09:58 riastradh Exp $ */
+/* $NetBSD: spinlock.h,v 1.1.2.4 2013/07/24 02:20:09 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -39,6 +39,12 @@
kmutex_t sl_lock;
} spinlock_t;
+static inline int
+spin_is_locked(spinlock_t *spinlock)
+{
+ return mutex_owned(&spinlock->sl_lock);
+}
+
static inline void
spin_lock(spinlock_t *spinlock)
{
Home |
Main Index |
Thread Index |
Old Index