Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Move up evcnt_init to before cpu_startup()



details:   https://anonhg.NetBSD.org/src/rev/fab566e4255f
branches:  trunk
changeset: 760990:fab566e4255f
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Jan 18 08:18:43 2011 +0000

description:
Move up evcnt_init to before cpu_startup()

diffstat:

 sys/kern/init_main.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r 9e62c7a621ef -r fab566e4255f sys/kern/init_main.c
--- a/sys/kern/init_main.c      Tue Jan 18 08:17:39 2011 +0000
+++ b/sys/kern/init_main.c      Tue Jan 18 08:18:43 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init_main.c,v 1.425 2011/01/17 07:13:31 uebayasi Exp $ */
+/*     $NetBSD: init_main.c,v 1.426 2011/01/18 08:18:43 matt Exp $     */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.425 2011/01/17 07:13:31 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.426 2011/01/18 08:18:43 matt Exp $");
 
 #include "opt_ddb.h"
 #include "opt_ipsec.h"
@@ -326,6 +326,9 @@
        /* Initialize the extent manager. */
        extent_init();
 
+       /* Initialize event counters */
+       evcnt_init();
+
        /* Do machine-dependent initialization. */
        cpu_startup();
 
@@ -368,7 +371,6 @@
        /*
         * The following things must be done before autoconfiguration.
         */
-       evcnt_init();           /* initialize event counters */
 #if NRND > 0
        rnd_init();             /* initialize random number generator */
 #endif



Home | Main Index | Thread Index | Old Index