diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2023-02-20 00:01:17 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2023-02-20 00:01:17 +0000 |
commit | 4839f40f71554fa25b14f75bd4827e584837e91a (patch) | |
tree | 97ccc78ddc44e324ddf6b7a66ae2c72050790398 | |
parent | 3277b19c7a90b62b4cfb8682cd90ff8ab512360f (diff) |
Unbreak RAMDISK build by adding a check for MULTIPROCESSOR.
-rw-r--r-- | sys/arch/arm64/arm64/cpu.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 <drahn@dalerahn.com> @@ -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) |