Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/ibmnws/ibmnws malloc(9) -> kmem(9)



details:   https://anonhg.NetBSD.org/src/rev/9db347bee984
branches:  trunk
changeset: 979645:9db347bee984
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Jan 04 15:56:24 2021 +0000

description:
malloc(9) -> kmem(9)

diffstat:

 sys/arch/ibmnws/ibmnws/mainbus.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r a86d0c657888 -r 9db347bee984 sys/arch/ibmnws/ibmnws/mainbus.c
--- a/sys/arch/ibmnws/ibmnws/mainbus.c  Mon Jan 04 15:52:51 2021 +0000
+++ b/sys/arch/ibmnws/ibmnws/mainbus.c  Mon Jan 04 15:56:24 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mainbus.c,v 1.14 2020/07/07 03:38:47 thorpej Exp $     */
+/*     $NetBSD: mainbus.c,v 1.15 2021/01/04 15:56:24 thorpej Exp $     */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All rights reserved.
@@ -39,7 +39,7 @@
 #include <sys/param.h>
 #include <sys/systm.h>
 #include <sys/device.h>
-#include <sys/malloc.h>
+#include <sys/kmem.h>
 
 #include <machine/autoconf.h>
 #include <sys/bus.h>
@@ -120,8 +120,7 @@
         * XXX that's not currently possible.
         */
 #if NPCI > 0
-       genppc_pct = malloc(sizeof(struct genppc_pci_chipset), M_DEVBUF,
-           M_WAITOK);
+       genppc_pct = kmem_alloc(sizeof(struct genppc_pci_chipset), KM_SLEEP);
        ibmnws_pci_get_chipset_tag_indirect (genppc_pct);
 
 #ifdef PCI_NETBSD_CONFIGURE



Home | Main Index | Thread Index | Old Index