Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/alpha Hint from Matt Thomas: use evcnt_attach...



details:   https://anonhg.NetBSD.org/src/rev/1e9f9bb4b254
branches:  trunk
changeset: 764314:1e9f9bb4b254
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Apr 15 21:24:00 2011 +0000

description:
Hint from Matt Thomas: use evcnt_attach_dynamic_nozero()

diffstat:

 sys/arch/alpha/alpha/machdep.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r b4c5772ac77d -r 1e9f9bb4b254 sys/arch/alpha/alpha/machdep.c
--- a/sys/arch/alpha/alpha/machdep.c    Fri Apr 15 21:03:51 2011 +0000
+++ b/sys/arch/alpha/alpha/machdep.c    Fri Apr 15 21:24:00 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.331 2011/04/15 20:52:36 martin Exp $ */
+/* $NetBSD: machdep.c,v 1.332 2011/04/15 21:24:00 martin Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.331 2011/04/15 20:52:36 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.332 2011/04/15 21:24:00 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -870,9 +870,9 @@
        /*
         * Initialize some trap event counters.
         */
-       evcnt_attach_dynamic(&fpevent_use, EVCNT_TYPE_MISC, NULL,
+       evcnt_attach_dynamic_nozero(&fpevent_use, EVCNT_TYPE_MISC, NULL,
            "FP", "proc use");
-       evcnt_attach_dynamic(&fpevent_reuse, EVCNT_TYPE_MISC, NULL,
+       evcnt_attach_dynamic_nozero(&fpevent_reuse, EVCNT_TYPE_MISC, NULL,
            "FP", "proc re-use");
 }
 



Home | Main Index | Thread Index | Old Index