Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/ibm4xx Use EVCNT_ATTACH_STATIC
details: https://anonhg.NetBSD.org/src/rev/39344cd24c5f
branches: trunk
changeset: 761768:39344cd24c5f
user: matt <matt%NetBSD.org@localhost>
date: Mon Feb 07 07:02:24 2011 +0000
description:
Use EVCNT_ATTACH_STATIC
diffstat:
sys/arch/powerpc/ibm4xx/pmap.c | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diffs (41 lines):
diff -r 55d34ecc2945 -r 39344cd24c5f sys/arch/powerpc/ibm4xx/pmap.c
--- a/sys/arch/powerpc/ibm4xx/pmap.c Mon Feb 07 06:41:08 2011 +0000
+++ b/sys/arch/powerpc/ibm4xx/pmap.c Mon Feb 07 07:02:24 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.65 2011/01/14 02:06:29 rmind Exp $ */
+/* $NetBSD: pmap.c,v 1.66 2011/02/07 07:02:24 matt Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.65 2011/01/14 02:06:29 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.66 2011/02/07 07:02:24 matt Exp $");
#include <sys/param.h>
#include <sys/malloc.h>
@@ -126,6 +126,10 @@
NULL, "cpu", "tlbflush");
struct evcnt tlbenter_ev = EVCNT_INITIALIZER(EVCNT_TYPE_TRAP,
NULL, "cpu", "tlbenter");
+EVCNT_ATTACH_STATIC(tlbmiss_ev);
+EVCNT_ATTACH_STATIC(tlbhit_ev);
+EVCNT_ATTACH_STATIC(tlbflush_ev);
+EVCNT_ATTACH_STATIC(tlbenter_ev);
struct pmap kernel_pmap_;
struct pmap *const kernel_pmap_ptr = &kernel_pmap_;
@@ -412,11 +416,6 @@
pmap_kernel()->pm_ctx = KERNEL_PID;
nextavail = avail->start;
- evcnt_attach_static(&tlbmiss_ev);
- evcnt_attach_static(&tlbhit_ev);
- evcnt_attach_static(&tlbflush_ev);
- evcnt_attach_static(&tlbenter_ev);
-
pmap_bootstrap_done = 1;
}
Home |
Main Index |
Thread Index |
Old Index