Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/fdt Wrap MP-specific code in ifdef MULTIPROCESSOR



details:   https://anonhg.NetBSD.org/src/rev/8f23a52772f5
branches:  trunk
changeset: 825900:8f23a52772f5
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Aug 05 11:58:19 2017 +0000

description:
Wrap MP-specific code in ifdef MULTIPROCESSOR

diffstat:

 sys/arch/arm/fdt/psci_fdt.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r 2f34c237be71 -r 8f23a52772f5 sys/arch/arm/fdt/psci_fdt.c
--- a/sys/arch/arm/fdt/psci_fdt.c       Sat Aug 05 11:33:05 2017 +0000
+++ b/sys/arch/arm/fdt/psci_fdt.c       Sat Aug 05 11:58:19 2017 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -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 @@
 void
 psci_fdt_bootstrap(void)
 {
+#ifdef MULTIPROCESSOR
        extern void cortex_mpstart(void);
        bus_addr_t mpidr;
        uint32_t bp_mpidr;
@@ -173,4 +176,5 @@
                if (arm_cpu_hatched == started)
                        break;
        }
+#endif
 }



Home | Main Index | Thread Index | Old Index