Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 cpu_hatched_p only for MULTIPROCESSOR



details:   https://anonhg.NetBSD.org/src/rev/663e4e98925a
branches:  trunk
changeset: 460385:663e4e98925a
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Oct 20 14:25:14 2019 +0000

description:
cpu_hatched_p only for MULTIPROCESSOR

diffstat:

 sys/arch/arm/arm32/cpu.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r d201f78c9f9e -r 663e4e98925a sys/arch/arm/arm32/cpu.c
--- a/sys/arch/arm/arm32/cpu.c  Sun Oct 20 14:03:51 2019 +0000
+++ b/sys/arch/arm/arm32/cpu.c  Sun Oct 20 14:25:14 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.133 2019/10/19 18:04:26 jmcneill Exp $       */
+/*     $NetBSD: cpu.c,v 1.134 2019/10/20 14:25:14 jmcneill Exp $       */
 
 /*
  * Copyright (c) 1995 Mark Brinicombe.
@@ -46,7 +46,7 @@
 #include "opt_multiprocessor.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.133 2019/10/19 18:04:26 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.134 2019/10/20 14:25:14 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -239,12 +239,14 @@
        vfp_attach(ci);         /* XXX SMP */
 }
 
+#ifdef MULTIPROCESSOR
 bool
 cpu_hatched_p(u_int cpuindex)
 {
        membar_consumer();
        return (arm_cpu_hatched & __BIT(cpuindex)) != 0;
 }
+#endif
 
 enum cpu_class {
        CPU_CLASS_NONE,



Home | Main Index | Thread Index | Old Index