Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Call cpu_attach_common to attach the per-cpu counters.



details:   https://anonhg.NetBSD.org/src/rev/815243f34929
branches:  trunk
changeset: 808605:815243f34929
user:      matt <matt%NetBSD.org@localhost>
date:      Tue May 26 02:09:34 2015 +0000

description:
Call cpu_attach_common to attach the per-cpu counters.

diffstat:

 sys/arch/evbmips/evbmips/cpu.c |  5 +++--
 sys/arch/mips/mips/cpu_subr.c  |  7 ++-----
 2 files changed, 5 insertions(+), 7 deletions(-)

diffs (52 lines):

diff -r 798047d653e1 -r 815243f34929 sys/arch/evbmips/evbmips/cpu.c
--- a/sys/arch/evbmips/evbmips/cpu.c    Tue May 26 00:42:07 2015 +0000
+++ b/sys/arch/evbmips/evbmips/cpu.c    Tue May 26 02:09:34 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.3 2011/02/20 07:48:34 matt Exp $     */
+/*     $NetBSD: cpu.c,v 1.4 2015/05/26 02:09:34 matt Exp $     */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.3 2011/02/20 07:48:34 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.4 2015/05/26 02:09:34 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -71,4 +71,5 @@
 
        aprint_normal("%s: ", device_xname(self));
        cpu_identify(self);
+       cpu_attach_common(self, ci);
 }
diff -r 798047d653e1 -r 815243f34929 sys/arch/mips/mips/cpu_subr.c
--- a/sys/arch/mips/mips/cpu_subr.c     Tue May 26 00:42:07 2015 +0000
+++ b/sys/arch/mips/mips/cpu_subr.c     Tue May 26 02:09:34 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu_subr.c,v 1.18 2015/05/18 01:32:52 matt Exp $       */
+/*     $NetBSD: cpu_subr.c,v 1.19 2015/05/26 02:09:34 matt Exp $       */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu_subr.c,v 1.18 2015/05/18 01:32:52 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu_subr.c,v 1.19 2015/05/26 02:09:34 matt Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -244,9 +244,6 @@
                EVCNT_TYPE_TRAP, NULL, xname,
                "tlb misses");
 
-       if (ci == &cpu_info_store)
-               pmap_tlb_info_evcnt_attach(ci->ci_tlb_info);
-
 #ifdef MULTIPROCESSOR
        if (ci != &cpu_info_store) {
                /*



Home | Main Index | Thread Index | Old Index