diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2022-02-15 16:54:49 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2022-02-15 16:54:49 +0000 |
commit | 7fb5e3d155483e17aacda51785d7d3772b207912 (patch) | |
tree | 2764c96148c2f88fe65b9157c09b89a9e39c1a95 /sys/arch | |
parent | d0d3e322b42c97fea6d68d70518a306421eabca0 (diff) |
when the MI suspend code encounters problems, we need a way to
reset the MD state before bailing out. New MD function sleep_abort()
does that.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/arm64/dev/apm.c | 7 | ||||
-rw-r--r-- | sys/arch/macppc/dev/apm.c | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/sys/arch/arm64/dev/apm.c b/sys/arch/arm64/dev/apm.c index f50aef6e0b4..4b65791ff8f 100644 --- a/sys/arch/arm64/dev/apm.c +++ b/sys/arch/arm64/dev/apm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apm.c,v 1.13 2022/02/15 02:38:16 deraadt Exp $ */ +/* $OpenBSD: apm.c,v 1.14 2022/02/15 16:54:48 deraadt Exp $ */ /*- * Copyright (c) 2001 Alexander Guy. All rights reserved. @@ -382,6 +382,11 @@ gosleep(void *v) // XXX } +void +sleep_abort(void *v) +{ +} + int sleep_resume(void *v) { diff --git a/sys/arch/macppc/dev/apm.c b/sys/arch/macppc/dev/apm.c index ea912dd81d4..302f46e9336 100644 --- a/sys/arch/macppc/dev/apm.c +++ b/sys/arch/macppc/dev/apm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apm.c,v 1.29 2022/02/15 02:38:17 deraadt Exp $ */ +/* $OpenBSD: apm.c,v 1.30 2022/02/15 16:54:48 deraadt Exp $ */ /*- * Copyright (c) 2001 Alexander Guy. All rights reserved. @@ -369,6 +369,11 @@ sleep_setstate(void *v) return 0; } +void +sleep_abort(void *v) +{ +} + int sleep_resume(void *v) { |