Module Name: src
Committed By: msaitoh
Date: Tue Dec 26 03:58:03 UTC 2017
Modified Files:
src/sys/kern: init_main.c
Log Message:
Make cold __read_mostly like mp_online.
To generate a diff of this commit:
cvs rdiff -u -r1.493 -r1.494 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.493 src/sys/kern/init_main.c:1.494
--- src/sys/kern/init_main.c:1.493 Fri Dec 15 16:05:51 2017
+++ src/sys/kern/init_main.c Tue Dec 26 03:58:03 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: init_main.c,v 1.493 2017/12/15 16:05:51 chs Exp $ */
+/* $NetBSD: init_main.c,v 1.494 2017/12/26 03:58:03 msaitoh 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.493 2017/12/15 16:05:51 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.494 2017/12/26 03:58:03 msaitoh Exp $");
#include "opt_ddb.h"
#include "opt_inet.h"
@@ -233,7 +233,7 @@ struct proc *initproc;
struct vnode *rootvp, *swapdev_vp;
int boothowto;
-int cold = 1; /* still working on startup */
+int cold __read_mostly = 1; /* still working on startup */
struct timespec boottime; /* time at system startup - will only follow settime deltas */
int start_init_exec; /* semaphore for start_init() */