Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm malloc(9) -> kmem(9)
details: https://anonhg.NetBSD.org/src/rev/562086c17858
branches: trunk
changeset: 957191:562086c17858
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sat Nov 21 15:30:06 2020 +0000
description:
malloc(9) -> kmem(9)
diffstat:
sys/arch/evbarm/ifpga/ifpga_intr.c | 6 +++---
sys/arch/evbarm/iq80310/iq80310_intr.c | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (63 lines):
diff -r 744fe0713db2 -r 562086c17858 sys/arch/evbarm/ifpga/ifpga_intr.c
--- a/sys/arch/evbarm/ifpga/ifpga_intr.c Sat Nov 21 15:28:44 2020 +0000
+++ b/sys/arch/evbarm/ifpga/ifpga_intr.c Sat Nov 21 15:30:06 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ifpga_intr.c,v 1.11 2019/11/10 21:16:25 chs Exp $ */
+/* $NetBSD: ifpga_intr.c,v 1.12 2020/11/21 15:30:06 thorpej Exp $ */
/*
* Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -45,7 +45,7 @@
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/malloc.h>
+#include <sys/kmem.h>
#include <sys/bus.h>
#include <sys/intr.h>
@@ -255,7 +255,7 @@
if (irq < 0 || irq > NIRQ)
panic("ifpga_intr_establish: IRQ %d out of range", irq);
- ih = malloc(sizeof(*ih), M_DEVBUF, M_WAITOK);
+ ih = kmem_alloc(sizeof(*ih), KM_SLEEP);
ih->ih_func = func;
ih->ih_arg = arg;
ih->ih_ipl = ipl;
diff -r 744fe0713db2 -r 562086c17858 sys/arch/evbarm/iq80310/iq80310_intr.c
--- a/sys/arch/evbarm/iq80310/iq80310_intr.c Sat Nov 21 15:28:44 2020 +0000
+++ b/sys/arch/evbarm/iq80310/iq80310_intr.c Sat Nov 21 15:30:06 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iq80310_intr.c,v 1.35 2019/11/10 21:16:26 chs Exp $ */
+/* $NetBSD: iq80310_intr.c,v 1.36 2020/11/21 15:30:07 thorpej Exp $ */
/*
* Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: iq80310_intr.c,v 1.35 2019/11/10 21:16:26 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: iq80310_intr.c,v 1.36 2020/11/21 15:30:07 thorpej Exp $");
#ifndef EVBARM_SPL_NOINLINE
#define EVBARM_SPL_NOINLINE
@@ -48,7 +48,7 @@
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/malloc.h>
+#include <sys/kmem.h>
#include <sys/bus.h>
#include <machine/intr.h>
@@ -373,7 +373,7 @@
if (irq < 0 || irq > NIRQ)
panic("iq80310_intr_establish: IRQ %d out of range", irq);
- ih = malloc(sizeof(*ih), M_DEVBUF, M_WAITOK);
+ ih = kmem_alloc(sizeof(*ih), KM_SLEEP);
ih->ih_func = func;
ih->ih_arg = arg;
ih->ih_ipl = ipl;
Home |
Main Index |
Thread Index |
Old Index