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 spin_(un)lock_i...
details: https://anonhg.NetBSD.org/src/rev/cea2ac63e517
branches: riastradh-drm2
changeset: 788447:cea2ac63e517
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 03:50:30 2013 +0000
description:
spin_(un)lock_irq in drm2 <linux/spinlock.h>.
diffstat:
sys/external/bsd/drm2/include/linux/spinlock.h | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diffs (28 lines):
diff -r a71d2f922c1d -r cea2ac63e517 sys/external/bsd/drm2/include/linux/spinlock.h
--- a/sys/external/bsd/drm2/include/linux/spinlock.h Wed Jul 24 03:50:16 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/spinlock.h Wed Jul 24 03:50:30 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spinlock.h,v 1.1.2.6 2013/07/24 02:50:36 riastradh Exp $ */
+/* $NetBSD: spinlock.h,v 1.1.2.7 2013/07/24 03:50:30 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -57,6 +57,18 @@
mutex_exit(&spinlock->sl_lock);
}
+static inline void
+spin_lock_irq(spinlock_t *spinlock)
+{
+ spin_lock(spinlock);
+}
+
+static inline void
+spin_unlock_irq(spinlock_t *spinlock)
+{
+ spin_unlock(spinlock);
+}
+
/* Must be a macro because the second argument is to be assigned. */
#define spin_lock_irqsave(SPINLOCK, FLAGS) \
do { \
Home |
Main Index |
Thread Index |
Old Index