Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Change some low-hanging splimp() calls to splvm().
details: https://anonhg.NetBSD.org/src/rev/7712608b99f0
branches: trunk
changeset: 502223:7712608b99f0
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sun Jan 14 02:06:21 2001 +0000
description:
Change some low-hanging splimp() calls to splvm().
diffstat:
sys/kern/subr_pool.c | 6 +++---
sys/kern/uipc_mbuf.c | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r d3f106eda0ee -r 7712608b99f0 sys/kern/subr_pool.c
--- a/sys/kern/subr_pool.c Sun Jan 14 02:03:48 2001 +0000
+++ b/sys/kern/subr_pool.c Sun Jan 14 02:06:21 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_pool.c,v 1.48 2000/12/11 05:22:56 thorpej Exp $ */
+/* $NetBSD: subr_pool.c,v 1.49 2001/01/14 02:06:21 thorpej Exp $ */
/*-
* Copyright (c) 1997, 1999, 2000 The NetBSD Foundation, Inc.
@@ -1306,7 +1306,7 @@
struct pool *pp;
int s;
- s = splimp();
+ s = splvm();
simple_lock(&pool_head_slock);
if (drainpp == NULL && (drainpp = TAILQ_FIRST(&pool_head)) == NULL)
@@ -1331,7 +1331,7 @@
{
int s;
- s = splimp();
+ s = splvm();
if (simple_lock_try(&pp->pr_slock) == 0) {
printf("pool %s is locked; try again later\n",
pp->pr_wchan);
diff -r d3f106eda0ee -r 7712608b99f0 sys/kern/uipc_mbuf.c
--- a/sys/kern/uipc_mbuf.c Sun Jan 14 02:03:48 2001 +0000
+++ b/sys/kern/uipc_mbuf.c Sun Jan 14 02:06:21 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uipc_mbuf.c,v 1.51 2000/11/14 20:05:28 itojun Exp $ */
+/* $NetBSD: uipc_mbuf.c,v 1.52 2001/01/14 02:06:22 thorpej Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -277,7 +277,7 @@
struct domain *dp;
struct protosw *pr;
struct ifnet *ifp;
- int s = splimp();
+ int s = splvm();
for (dp = domains; dp; dp = dp->dom_next)
for (pr = dp->dom_protosw;
Home |
Main Index |
Thread Index |
Old Index