From: patrick Date: Mon, 20 Feb 2023 00:01:16 +0000 (+0000) Subject: Unbreak RAMDISK build by adding a check for MULTIPROCESSOR. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=cab35adb1633a7bdc06a2c147fc37d50fa8642e0;p=openbsd Unbreak RAMDISK build by adding a check for MULTIPROCESSOR. --- diff --git a/sys/arch/arm64/arm64/cpu.c b/sys/arch/arm64/arm64/cpu.c index e43b09edb56..3f27da56496 100644 --- a/sys/arch/arm64/arm64/cpu.c +++ b/sys/arch/arm64/arm64/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.85 2023/02/19 17:16:13 kettenis Exp $ */ +/* $OpenBSD: cpu.c,v 1.86 2023/02/20 00:01:16 patrick Exp $ */ /* * Copyright (c) 2016 Dale Rahn @@ -1686,7 +1686,7 @@ cpu_psci_init(struct cpu_info *ci) * We found the "psci" power domain. If this power domain has * a parent power domain, stash its phandle away for later. */ - + cluster = OF_getpropint(node, "power-domains", 0); /* @@ -1716,8 +1716,10 @@ cpu_psci_init(struct cpu_info *ci) * that will always be the primary CPU. */ +#ifdef MULTIPROCESSOR if (ci->ci_flags & CPUF_AP) return; +#endif node = OF_getnodebyphandle(cluster); if (node == 0)