Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/include/linux spin_lock_nested



details:   https://anonhg.NetBSD.org/src/rev/5c6180f7a860
branches:  trunk
changeset: 1028056:5c6180f7a860
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:45:05 2021 +0000

description:
spin_lock_nested

diffstat:

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

diffs (22 lines):

diff -r 7420adbe9414 -r 5c6180f7a860 sys/external/bsd/drm2/include/linux/spinlock.h
--- a/sys/external/bsd/drm2/include/linux/spinlock.h    Sun Dec 19 01:44:57 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/spinlock.h    Sun Dec 19 01:45:05 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: spinlock.h,v 1.9 2021/12/19 00:54:46 riastradh Exp $   */
+/*     $NetBSD: spinlock.h,v 1.10 2021/12/19 01:45:05 riastradh Exp $  */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -89,6 +89,12 @@
 }
 
 static inline void
+spin_lock_nested(spinlock_t *spinlock, int subclass)
+{
+       spin_lock(spinlock);
+}
+
+static inline void
 spin_lock_init(spinlock_t *spinlock)
 {
        /* XXX What's the right IPL?  IPL_DRM...?  */



Home | Main Index | Thread Index | Old Index