Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/vchiq/dist/interface Use IPL_VM and IST_MPS...
details: https://anonhg.NetBSD.org/src/rev/d8bda114db61
branches: trunk
changeset: 827612:d8bda114db61
user: skrll <skrll%NetBSD.org@localhost>
date: Sun Nov 05 09:11:43 2017 +0000
description:
Use IPL_VM and IST_MPSAFE instead of IPL_SCHED
diffstat:
sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.c | 4 ++--
sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.h | 4 ++--
sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_kmod_netbsd.c | 6 +++---
3 files changed, 7 insertions(+), 7 deletions(-)
diffs (69 lines):
diff -r be4534090466 -r d8bda114db61 sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.c
--- a/sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.c Sun Nov 05 09:05:20 2017 +0000
+++ b/sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.c Sun Nov 05 09:11:43 2017 +0000
@@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: vchi_bsd.c,v 1.9 2014/09/02 09:55:48 jmcneill Exp $
+ * $Id: vchi_bsd.c,v 1.10 2017/11/05 09:11:43 skrll Exp $
*/
#include <sys/types.h>
@@ -136,7 +136,7 @@
_sema_init(struct semaphore *s, int value)
{
memset(s, 0, sizeof(*s));
- mutex_init(&s->mtx, MUTEX_DEFAULT, IPL_SCHED);
+ mutex_init(&s->mtx, MUTEX_DEFAULT, IPL_VM);
cv_init(&s->cv, "semacv");
s->value = value;
}
diff -r be4534090466 -r d8bda114db61 sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.h
--- a/sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.h Sun Nov 05 09:05:20 2017 +0000
+++ b/sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.h Sun Nov 05 09:11:43 2017 +0000
@@ -84,7 +84,7 @@
*/
#define DEFINE_SPINLOCK(name) kmutex_t name
-#define spin_lock_init(lock) mutex_init(lock, MUTEX_DEFAULT, IPL_SCHED)
+#define spin_lock_init(lock) mutex_init(lock, MUTEX_DEFAULT, IPL_VM)
#define spin_lock_destroy(lock) mutex_destroy(lock)
#define spin_lock(lock) mutex_spin_enter(lock)
#define spin_unlock(lock) mutex_spin_exit(lock)
@@ -109,7 +109,7 @@
#define DEFINE_RWLOCK(name) kmutex_t name
-#define rwlock_init(rwlock) mutex_init(rwlock, MUTEX_DEFAULT, IPL_SCHED)
+#define rwlock_init(rwlock) mutex_init(rwlock, MUTEX_DEFAULT, IPL_VM)
#define read_lock(rwlock) mutex_spin_enter(rwlock)
#define read_unlock(rwlock) mutex_spin_exit(rwlock)
diff -r be4534090466 -r d8bda114db61 sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_kmod_netbsd.c
--- a/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_kmod_netbsd.c Sun Nov 05 09:05:20 2017 +0000
+++ b/sys/external/bsd/vchiq/dist/interface/vchiq_arm/vchiq_kmod_netbsd.c Sun Nov 05 09:11:43 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vchiq_kmod_netbsd.c,v 1.8 2017/09/21 19:29:35 skrll Exp $ */
+/* $NetBSD: vchiq_kmod_netbsd.c,v 1.9 2017/11/05 09:11:43 skrll Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vchiq_kmod_netbsd.c,v 1.8 2017/09/21 19:29:35 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vchiq_kmod_netbsd.c,v 1.9 2017/11/05 09:11:43 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -125,7 +125,7 @@
vchiq_core_initialize();
- sc->sc_ih = intr_establish(sc->sc_intr, IPL_SCHED, IST_LEVEL,
+ sc->sc_ih = intr_establish(sc->sc_intr, IPL_VM, IST_LEVEL | IST_MPSAFE,
vchiq_intr, sc);
if (sc->sc_ih == NULL) {
aprint_error_dev(self, "failed to establish interrupt %d\n",
Home |
Main Index |
Thread Index |
Old Index