Module Name: src
Committed By: jmcneill
Date: Sat Aug 5 11:58:19 UTC 2017
Modified Files:
src/sys/arch/arm/fdt: psci_fdt.c
Log Message:
Wrap MP-specific code in ifdef MULTIPROCESSOR
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/fdt/psci_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/psci_fdt.c
diff -u src/sys/arch/arm/fdt/psci_fdt.c:1.1 src/sys/arch/arm/fdt/psci_fdt.c:1.2
--- src/sys/arch/arm/fdt/psci_fdt.c:1.1 Wed Jun 28 23:48:22 2017
+++ src/sys/arch/arm/fdt/psci_fdt.c Sat Aug 5 11:58:19 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: psci_fdt.c,v 1.1 2017/06/28 23:48:22 jmcneill Exp $ */
+/* $NetBSD: psci_fdt.c,v 1.2 2017/08/05 11:58:19 jmcneill Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <[email protected]>
@@ -26,8 +26,10 @@
* SUCH DAMAGE.
*/
+#include "opt_multiprocessor.h"
+
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: psci_fdt.c,v 1.1 2017/06/28 23:48:22 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: psci_fdt.c,v 1.2 2017/08/05 11:58:19 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -115,6 +117,7 @@ psci_fdt_init(const int phandle)
void
psci_fdt_bootstrap(void)
{
+#ifdef MULTIPROCESSOR
extern void cortex_mpstart(void);
bus_addr_t mpidr;
uint32_t bp_mpidr;
@@ -173,4 +176,5 @@ psci_fdt_bootstrap(void)
if (arm_cpu_hatched == started)
break;
}
+#endif
}