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 Add (unauthenti...



details:   https://anonhg.NetBSD.org/src/rev/1639dd45469b
branches:  riastradh-drm2
changeset: 788139:1639dd45469b
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 02:24:58 2013 +0000

description:
Add (unauthentic) spin_lock_destroy to <linux/spinlock.h>.

diffstat:

 sys/external/bsd/drm2/include/linux/spinlock.h |  13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r ec3aa8cc9bf4 -r 1639dd45469b sys/external/bsd/drm2/include/linux/spinlock.h
--- a/sys/external/bsd/drm2/include/linux/spinlock.h    Wed Jul 24 02:24:44 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/spinlock.h    Wed Jul 24 02:24:58 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: spinlock.h,v 1.1.2.4 2013/07/24 02:20:09 riastradh Exp $       */
+/*     $NetBSD: spinlock.h,v 1.1.2.5 2013/07/24 02:24:58 riastradh Exp $       */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -77,4 +77,15 @@
        mutex_init(&spinlock->sl_lock, MUTEX_DEFAULT, IPL_NONE);
 }
 
+/*
+ * XXX Linux doesn't ever destroy spin locks, it seems.  We'll have to
+ * kludge it up.
+ */
+
+static inline void
+spin_lock_destroy(spinlock_t *spinlock)
+{
+       mutex_destroy(&spinlock->sl_lock);
+}
+
 #endif  /* _LINUX_SPINLOCK_H_ */



Home | Main Index | Thread Index | Old Index