Module Name: src Committed By: thorpej Date: Sat Nov 21 17:55:38 UTC 2020
Modified Files: src/sys/arch/news68k/news68k: isr.c Log Message: malloc(9) -> kmem(9) To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 src/sys/arch/news68k/news68k/isr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/news68k/news68k/isr.c diff -u src/sys/arch/news68k/news68k/isr.c:1.22 src/sys/arch/news68k/news68k/isr.c:1.23 --- src/sys/arch/news68k/news68k/isr.c:1.22 Sun Nov 10 21:16:30 2019 +++ src/sys/arch/news68k/news68k/isr.c Sat Nov 21 17:55:38 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: isr.c,v 1.22 2019/11/10 21:16:30 chs Exp $ */ +/* $NetBSD: isr.c,v 1.23 2020/11/21 17:55:38 thorpej Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -39,11 +39,11 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: isr.c,v 1.22 2019/11/10 21:16:30 chs Exp $"); +__KERNEL_RCSID(0, "$NetBSD: isr.c,v 1.23 2020/11/21 17:55:38 thorpej Exp $"); #include <sys/param.h> #include <sys/systm.h> -#include <sys/malloc.h> +#include <sys/kmem.h> #include <sys/cpu.h> #include <sys/intr.h> @@ -82,7 +82,7 @@ isrlink_autovec(int (*func)(void *), voi if ((ipl < 0) || (ipl >= NISRAUTOVEC)) panic("isrlink_autovec: bad ipl %d", ipl); - newisr = malloc(sizeof(struct isr_autovec), M_DEVBUF, M_WAITOK); + newisr = kmem_alloc(sizeof(*newisr), KM_SLEEP); newisr->isr_func = func; newisr->isr_arg = arg; newisr->isr_ipl = ipl;