Module Name: src Committed By: thorpej Date: Wed May 5 03:54:16 UTC 2021
Modified Files: src/sys/arch/alpha/alpha: cpu.c Log Message: Decorate cpu_info_list with __read_mostly; it's never modified once all the CPUs are attached. To generate a diff of this commit: cvs rdiff -u -r1.103 -r1.104 src/sys/arch/alpha/alpha/cpu.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/arch/alpha/alpha/cpu.c diff -u src/sys/arch/alpha/alpha/cpu.c:1.103 src/sys/arch/alpha/alpha/cpu.c:1.104 --- src/sys/arch/alpha/alpha/cpu.c:1.103 Thu Oct 15 01:00:01 2020 +++ src/sys/arch/alpha/alpha/cpu.c Wed May 5 03:54:16 2021 @@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.10 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) /*