Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/sparc64 Interrupt handlers are now allocate...
details: https://anonhg.NetBSD.org/src/rev/9988e9db5e85
branches: trunk
changeset: 345232:9988e9db5e85
user: nakayama <nakayama%NetBSD.org@localhost>
date: Fri May 13 21:24:11 2016 +0000
description:
Interrupt handlers are now allocated by kmem_zalloc(9), so free
them by kmem_free(9).
diffstat:
sys/arch/sparc64/sparc64/intr.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r 64490e9d12b2 -r 9988e9db5e85 sys/arch/sparc64/sparc64/intr.c
--- a/sys/arch/sparc64/sparc64/intr.c Fri May 13 21:23:30 2016 +0000
+++ b/sys/arch/sparc64/sparc64/intr.c Fri May 13 21:24:11 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intr.c,v 1.68 2016/05/10 19:24:00 palle Exp $ */
+/* $NetBSD: intr.c,v 1.69 2016/05/13 21:24:11 nakayama Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.68 2016/05/10 19:24:00 palle Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.69 2016/05/13 21:24:11 nakayama Exp $");
#include "opt_ddb.h"
#include "opt_multiprocessor.h"
@@ -50,7 +50,6 @@
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/kmem.h>
-#include <sys/malloc.h>
#include <dev/cons.h>
@@ -309,7 +308,7 @@
sparc_softintr_disestablish(void *cookie)
{
- free(cookie, M_DEVBUF);
+ kmem_free(cookie, sizeof(struct intrhand));
}
void
Home |
Main Index |
Thread Index |
Old Index