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 Create Linux sp...



details:   https://anonhg.NetBSD.org/src/rev/fb83773e24a4
branches:  riastradh-drm2
changeset: 788564:fb83773e24a4
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Sep 08 16:31:14 2013 +0000

description:
Create Linux spin locks at IPL_VM for now.

diffstat:

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

diffs (20 lines):

diff -r f247544da7ea -r fb83773e24a4 sys/external/bsd/drm2/include/linux/spinlock.h
--- a/sys/external/bsd/drm2/include/linux/spinlock.h    Sun Sep 08 16:30:13 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/spinlock.h    Sun Sep 08 16:31:14 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: spinlock.h,v 1.1.2.8 2013/07/24 04:01:05 riastradh Exp $       */
+/*     $NetBSD: spinlock.h,v 1.1.2.9 2013/09/08 16:31:14 riastradh Exp $       */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -85,8 +85,8 @@
 static inline void
 spin_lock_init(spinlock_t *spinlock)
 {
-       /* XXX Need to identify which need to block intrs.  */
-       mutex_init(&spinlock->sl_lock, MUTEX_DEFAULT, IPL_NONE);
+       /* XXX What's the right IPL?  IPL_DRM...?  */
+       mutex_init(&spinlock->sl_lock, MUTEX_DEFAULT, IPL_VM);
 }
 
 /*



Home | Main Index | Thread Index | Old Index