Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 change aprint_verbose() to know easily msi ...
details: https://anonhg.NetBSD.org/src/rev/6ab2b85a03a2
branches: trunk
changeset: 353040:6ab2b85a03a2
user: knakahara <knakahara%NetBSD.org@localhost>
date: Tue Apr 18 11:49:50 2017 +0000
description:
change aprint_verbose() to know easily msi devices affinity to CPU#0 or not.
suggested by msaitoh@n.o.
diffstat:
sys/arch/x86/x86/intr.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diffs (42 lines):
diff -r ead5be68bba5 -r 6ab2b85a03a2 sys/arch/x86/x86/intr.c
--- a/sys/arch/x86/x86/intr.c Tue Apr 18 11:44:37 2017 +0000
+++ b/sys/arch/x86/x86/intr.c Tue Apr 18 11:49:50 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intr.c,v 1.98 2017/04/18 11:44:37 knakahara Exp $ */
+/* $NetBSD: intr.c,v 1.99 2017/04/18 11:49:50 knakahara Exp $ */
/*-
* Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -133,7 +133,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.98 2017/04/18 11:44:37 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.99 2017/04/18 11:49:50 knakahara Exp $");
#include "opt_intrdebug.h"
#include "opt_multiprocessor.h"
@@ -152,6 +152,7 @@
#include <sys/atomic.h>
#include <sys/xcall.h>
#include <sys/interrupt.h>
+#include <sys/reboot.h> /* for AB_VERBOSE */
#include <sys/kauth.h>
#include <sys/conf.h>
@@ -1081,10 +1082,11 @@
(*pic->pic_hwunmask)(pic, pin);
mutex_exit(&cpu_lock);
- DPRINTF(("allocated pic %s type %s pin %d level %d to %s slot %d "
- "idt entry %d\n",
- pic->pic_name, type == IST_EDGE ? "edge" : "level", pin, level,
- device_xname(ci->ci_dev), slot, idt_vec));
+ if (bootverbose)
+ aprint_verbose("allocated pic %s type %s pin %d level %d to %s slot %d "
+ "idt entry %d\n",
+ pic->pic_name, type == IST_EDGE ? "edge" : "level", pin, level,
+ device_xname(ci->ci_dev), slot, idt_vec);
return (ih);
}
Home |
Main Index |
Thread Index |
Old Index