From 94abace87c63e4387ca216bafdacc5fbb321c530 Mon Sep 17 00:00:00 2001 From: kettenis Date: Thu, 10 Nov 2022 23:21:15 +0000 Subject: [PATCH] Sprinkle some #ifdef SUSPEND to unbreak the tree. --- sys/arch/arm64/dev/aplsmc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/arch/arm64/dev/aplsmc.c b/sys/arch/arm64/dev/aplsmc.c index 185e97635a2..e2b618e63f9 100644 --- a/sys/arch/arm64/dev/aplsmc.c +++ b/sys/arch/arm64/dev/aplsmc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aplsmc.c,v 1.16 2022/11/10 11:45:29 kettenis Exp $ */ +/* $OpenBSD: aplsmc.c,v 1.17 2022/11/10 23:21:15 kettenis Exp $ */ /* * Copyright (c) 2021 Mark Kettenis * @@ -347,9 +347,12 @@ aplsmc_handle_notification(struct aplsmc_softc *sc, uint64_t data) switch (SMC_EV_SUBTYPE(data)) { case SMC_PWRBTN_SHORT: if (SMC_EV_DATA(data) == 1) { +#ifdef SUSPEND if (cpu_suspended) { cpu_suspended = 0; - } else if (allowpowerdown) { + } else +#endif + if (allowpowerdown) { allowpowerdown = 0; prsignal(initprocess, SIGUSR2); } -- 2.20.1