Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/alpha Decorate cpu_info_list with __read_most...



details:   https://anonhg.NetBSD.org/src/rev/e71134100a47
branches:  trunk
changeset: 379026:e71134100a47
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed May 05 03:54:16 2021 +0000

description:
Decorate cpu_info_list with __read_mostly; it's never modified once
all the CPUs are attached.

diffstat:

 sys/arch/alpha/alpha/cpu.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r bdd401f82103 -r e71134100a47 sys/arch/alpha/alpha/cpu.c
--- a/sys/arch/alpha/alpha/cpu.c        Wed May 05 02:15:18 2021 +0000
+++ b/sys/arch/alpha/alpha/cpu.c        Wed May 05 03:54:16 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.103 2020/10/15 01:00:01 thorpej Exp $ */
+/* $NetBSD: cpu.c,v 1.104 2021/05/05 03:54:16 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2000, 2001, 2020 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.103 2020/10/15 01:00:01 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.104 2021/05/05 03:54:16 thorpej Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -84,7 +84,7 @@
 struct cpu_info cpu_info_primary __cacheline_aligned = {
        .ci_curlwp = &lwp0
 };
-struct cpu_info *cpu_info_list = &cpu_info_primary;
+struct cpu_info *cpu_info_list __read_mostly = &cpu_info_primary;
 
 #if defined(MULTIPROCESSOR)
 /*



Home | Main Index | Thread Index | Old Index