Module Name: src
Committed By: jmcneill
Date: Sun Oct 20 14:25:14 UTC 2019
Modified Files:
src/sys/arch/arm/arm32: cpu.c
Log Message:
cpu_hatched_p only for MULTIPROCESSOR
To generate a diff of this commit:
cvs rdiff -u -r1.133 -r1.134 src/sys/arch/arm/arm32/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/arm/arm32/cpu.c
diff -u src/sys/arch/arm/arm32/cpu.c:1.133 src/sys/arch/arm/arm32/cpu.c:1.134
--- src/sys/arch/arm/arm32/cpu.c:1.133 Sat Oct 19 18:04:26 2019
+++ src/sys/arch/arm/arm32/cpu.c Sun Oct 20 14:25:14 2019
@@ -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 @@ cpu_attach(device_t dv, cpuid_t id)
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,