arm64: move cpu_suspended out of #ifdef SUSPEND
authortb <tb@openbsd.org>
Thu, 30 May 2024 04:16:25 +0000 (04:16 +0000)
committertb <tb@openbsd.org>
Thu, 30 May 2024 04:16:25 +0000 (04:16 +0000)
Matches amd64 and i386 and unbreaks the RAMDISK build

ok deraadt

sys/arch/arm64/arm64/cpu.c

index 23efaa4..a41b769 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: cpu.c,v 1.117 2024/05/29 15:32:06 jsg Exp $   */
+/*     $OpenBSD: cpu.c,v 1.118 2024/05/30 04:16:25 tb Exp $    */
 
 /*
  * Copyright (c) 2016 Dale Rahn <drahn@dalerahn.com>
@@ -1485,13 +1485,14 @@ cpu_unidle(struct cpu_info *ci)
 
 #endif
 
+int cpu_suspended;
+
 #ifdef SUSPEND
 
 void cpu_hatch_primary(void);
 
 void (*cpu_suspend_cycle_fcn)(void) = cpu_wfi;
 label_t cpu_suspend_jmpbuf;
-int cpu_suspended;
 
 void
 cpu_suspend_cycle(void)