Module Name:    src
Committed By:   pgoyette
Date:           Thu Jan  5 03:22:20 UTC 2017

Modified Files:
        src/sys/kern: init_main.c

Log Message:
Actually initialize the sysctl stuff for kernhist!  Missed this file
in earlier commits.


To generate a diff of this commit:
cvs rdiff -u -r1.488 -r1.489 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.488 src/sys/kern/init_main.c:1.489
--- src/sys/kern/init_main.c:1.488	Mon Dec 26 23:12:33 2016
+++ src/sys/kern/init_main.c	Thu Jan  5 03:22:20 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: init_main.c,v 1.488 2016/12/26 23:12:33 pgoyette Exp $	*/
+/*	$NetBSD: init_main.c,v 1.489 2017/01/05 03:22:20 pgoyette 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.488 2016/12/26 23:12:33 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.489 2017/01/05 03:22:20 pgoyette Exp $");
 
 #include "opt_ddb.h"
 #include "opt_inet.h"
@@ -115,6 +115,7 @@ __KERNEL_RCSID(0, "$NetBSD: init_main.c,
 #include "opt_ptrace.h"
 #include "opt_rnd_printf.h"
 #include "opt_splash.h"
+#include "opt_kernhist.h"
 
 #if defined(SPLASHSCREEN) && defined(makeoptions_SPLASHSCREEN_IMAGE)
 extern void *_binary_splash_image_start;
@@ -351,6 +352,10 @@ main(void)
 	bufinit();
 	biohist_init();
 
+#ifdef KERNHIST
+	sysctl_kernhist_init();
+#endif
+
 
 #if defined(SPLASHSCREEN) && defined(SPLASHSCREEN_IMAGE)
 	size_t splash_size = (&_binary_splash_image_end -

Reply via email to