From 586aa7df8a3627fd2a49d5a557334dadf171c9ac Mon Sep 17 00:00:00 2001 From: kettenis Date: Thu, 10 Nov 2022 11:23:21 +0000 Subject: [PATCH] arm64 can suspend without PSCI support now ok deraadt@, phessler@ --- sys/arch/arm64/dev/apm.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/arch/arm64/dev/apm.c b/sys/arch/arm64/dev/apm.c index bc428838789..2c88cd4d6dd 100644 --- a/sys/arch/arm64/dev/apm.c +++ b/sys/arch/arm64/dev/apm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apm.c,v 1.17 2022/07/13 09:28:18 kettenis Exp $ */ +/* $OpenBSD: apm.c,v 1.18 2022/11/10 11:23:21 kettenis Exp $ */ /*- * Copyright (c) 2001 Alexander Guy. All rights reserved. @@ -388,10 +388,8 @@ resume_mp(void) int sleep_showstate(void *v, int sleepmode) { -#if NPSCI > 0 - if (sleepmode == SLEEP_SUSPEND && psci_can_suspend()) + if (sleepmode == SLEEP_SUSPEND) return 0; -#endif return EOPNOTSUPP; } -- 2.20.1