Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips Fix non-MULTIPROCESSOR build



details:   https://anonhg.NetBSD.org/src/rev/67d4b61bea3f
branches:  trunk
changeset: 936166:67d4b61bea3f
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Jul 20 14:38:38 2020 +0000

description:
Fix non-MULTIPROCESSOR build

diffstat:

 sys/arch/mips/mips/cpu_subr.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 97a4055ebd07 -r 67d4b61bea3f sys/arch/mips/mips/cpu_subr.c
--- a/sys/arch/mips/mips/cpu_subr.c     Mon Jul 20 14:24:13 2020 +0000
+++ b/sys/arch/mips/mips/cpu_subr.c     Mon Jul 20 14:38:38 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu_subr.c,v 1.53 2020/07/20 14:19:41 jmcneill Exp $   */
+/*     $NetBSD: cpu_subr.c,v 1.54 2020/07/20 14:38:38 skrll Exp $      */
 
 /*-
  * Copyright (c) 2010, 2019 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu_subr.c,v 1.53 2020/07/20 14:19:41 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu_subr.c,v 1.54 2020/07/20 14:38:38 skrll Exp $");
 
 #include "opt_cputype.h"
 #include "opt_ddb.h"
@@ -75,8 +75,6 @@
 extern struct cpu_softc octeon_cpu_softc[];
 #endif
 
-static kmutex_t cpu_hatch_lock;
-
 struct cpu_info cpu_info_store
 #if defined(MULTIPROCESSOR) && !defined(MIPS64_OCTEON)
        __section(".data1")
@@ -108,6 +106,8 @@
 };
 
 #ifdef MULTIPROCESSOR
+static kmutex_t cpu_hatch_lock;
+
 struct cpu_info * cpuid_infos[MAXCPUS] = {
        [0] = &cpu_info_store,
 };



Home | Main Index | Thread Index | Old Index