Module Name: src Committed By: riastradh Date: Sun Sep 8 16:31:14 UTC 2013
Modified Files: src/sys/external/bsd/drm2/include/linux [riastradh-drm2]: spinlock.h Log Message: Create Linux spin locks at IPL_VM for now. To generate a diff of this commit: cvs rdiff -u -r1.1.2.8 -r1.1.2.9 \ src/sys/external/bsd/drm2/include/linux/spinlock.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/drm2/include/linux/spinlock.h diff -u src/sys/external/bsd/drm2/include/linux/spinlock.h:1.1.2.8 src/sys/external/bsd/drm2/include/linux/spinlock.h:1.1.2.9 --- src/sys/external/bsd/drm2/include/linux/spinlock.h:1.1.2.8 Wed Jul 24 04:01:05 2013 +++ src/sys/external/bsd/drm2/include/linux/spinlock.h Sun Sep 8 16:31:14 2013 @@ -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 @@ spin_unlock_irqrestore(spinlock_t *spinl 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); } /*