Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Make cold __read_mostly like mp_online.



details:   https://anonhg.NetBSD.org/src/rev/76b2e01fd57e
branches:  trunk
changeset: 828671:76b2e01fd57e
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Dec 26 03:58:03 2017 +0000

description:
Make cold __read_mostly like mp_online.

diffstat:

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

diffs (27 lines):

diff -r e27a4616e652 -r 76b2e01fd57e sys/kern/init_main.c
--- a/sys/kern/init_main.c      Tue Dec 26 02:26:45 2017 +0000
+++ b/sys/kern/init_main.c      Tue Dec 26 03:58:03 2017 +0000
@@ -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 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() */



Home | Main Index | Thread Index | Old Index