Module Name:    src
Committed By:   jmcneill
Date:           Thu Sep 13 12:53:00 UTC 2018

Modified Files:
        src/sys/arch/arm/fdt: cpu_fdt.c

Log Message:
Wrap arm_fdt_cpu_okay with #ifdef MULTIPROCESSOR


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/arm/fdt/cpu_fdt.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/fdt/cpu_fdt.c
diff -u src/sys/arch/arm/fdt/cpu_fdt.c:1.13 src/sys/arch/arm/fdt/cpu_fdt.c:1.14
--- src/sys/arch/arm/fdt/cpu_fdt.c:1.13	Mon Sep 10 19:15:16 2018
+++ src/sys/arch/arm/fdt/cpu_fdt.c	Thu Sep 13 12:53:00 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu_fdt.c,v 1.13 2018/09/10 19:15:16 jmcneill Exp $ */
+/* $NetBSD: cpu_fdt.c,v 1.14 2018/09/13 12:53:00 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared McNeill <[email protected]>
@@ -30,7 +30,7 @@
 #include "psci_fdt.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu_fdt.c,v 1.13 2018/09/10 19:15:16 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu_fdt.c,v 1.14 2018/09/13 12:53:00 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -205,6 +205,7 @@ spintable_cpu_on(u_int cpuindex, paddr_t
 }
 #endif /* MULTIPROCESSOR */
 
+#ifdef MULTIPROCESSOR
 static bool
 arm_fdt_cpu_okay(const int child)
 {
@@ -225,6 +226,7 @@ arm_fdt_cpu_okay(const int child)
 		return true;
 	}
 }
+#endif /* MULTIPROCESSOR */
 
 void
 arm_fdt_cpu_bootstrap(void)

Reply via email to