Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Use kmem(9) to allocate per-cpu softint context. N...



details:   https://anonhg.NetBSD.org/src/rev/7ff85b5cc779
branches:  trunk
changeset: 767776:7ff85b5cc779
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Sat Jul 30 05:24:16 2011 +0000

description:
Use kmem(9) to allocate per-cpu softint context.  No functional changes.

diffstat:

 sys/kern/kern_softint.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 47089482598e -r 7ff85b5cc779 sys/kern/kern_softint.c
--- a/sys/kern/kern_softint.c   Sat Jul 30 04:53:30 2011 +0000
+++ b/sys/kern/kern_softint.c   Sat Jul 30 05:24:16 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_softint.c,v 1.35 2011/04/24 18:46:22 rmind Exp $  */
+/*     $NetBSD: kern_softint.c,v 1.36 2011/07/30 05:24:16 uebayasi Exp $       */
 
 /*-
  * Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
@@ -176,7 +176,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_softint.c,v 1.35 2011/04/24 18:46:22 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_softint.c,v 1.36 2011/07/30 05:24:16 uebayasi Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -186,6 +186,7 @@
 #include <sys/evcnt.h>
 #include <sys/cpu.h>
 #include <sys/xcall.h>
+#include <sys/kmem.h>
 
 #include <net/netisr.h>
 
@@ -283,8 +284,7 @@
                    sizeof(softhand_t);
        }
 
-       sc = (softcpu_t *)uvm_km_alloc(kernel_map, softint_bytes, 0,
-           UVM_KMF_WIRED | UVM_KMF_ZERO);
+       sc = kmem_zalloc(softint_bytes, KM_SLEEP);
        if (sc == NULL)
                panic("softint_init_cpu: cannot allocate memory");
 



Home | Main Index | Thread Index | Old Index