Module Name: src Committed By: matt Date: Tue Jan 18 08:18:43 UTC 2011
Modified Files: src/sys/kern: init_main.c Log Message: Move up evcnt_init to before cpu_startup() To generate a diff of this commit: cvs rdiff -u -r1.425 -r1.426 src/sys/kern/init_main.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/init_main.c diff -u src/sys/kern/init_main.c:1.425 src/sys/kern/init_main.c:1.426 --- src/sys/kern/init_main.c:1.425 Mon Jan 17 07:13:31 2011 +++ src/sys/kern/init_main.c Tue Jan 18 08:18:43 2011 @@ -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