-/* $OpenBSD: apm.c,v 1.24 2023/07/08 14:44:43 tobhe Exp $ */
+/* $OpenBSD: apm.c,v 1.25 2024/05/28 09:40:40 kettenis Exp $ */
/*-
* Copyright (c) 2001 Alexander Guy. All rights reserved.
return cpu_suspend_primary();
}
-void
-sleep_abort(void *v)
-{
-}
-
int
sleep_resume(void *v)
{
-/* $OpenBSD: apm.c,v 1.35 2023/07/08 14:44:43 tobhe Exp $ */
+/* $OpenBSD: apm.c,v 1.36 2024/05/28 09:40:40 kettenis Exp $ */
/*-
* Copyright (c) 2001 Alexander Guy. All rights reserved.
return 0;
}
-void
-sleep_abort(void *v)
-{
-}
-
int
sleep_resume(void *v)
{
-/* $OpenBSD: acpi_x86.c,v 1.19 2024/05/27 09:31:58 kettenis Exp $ */
+/* $OpenBSD: acpi_x86.c,v 1.20 2024/05/28 09:40:40 kettenis Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
return ret;
}
-void
-sleep_abort(void *v)
-{
-}
-
int
sleep_resume(void *v)
{
-/* $OpenBSD: subr_suspend.c,v 1.17 2024/05/26 13:37:32 kettenis Exp $ */
+/* $OpenBSD: subr_suspend.c,v 1.18 2024/05/28 09:40:40 kettenis Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
uvmpd_hibernate();
if (hibernate_alloc()) {
printf("failed to allocate hibernate memory\n");
- sleep_abort(v);
error = ENOMEM;
goto fail_hiballoc;
}
sensor_quiesce();
if (config_suspend_all(DVACT_QUIESCE)) {
- sleep_abort(v);
error = EIO;
goto fail_quiesce;
}
intr_enable_wakeup();
if (config_suspend_all(DVACT_SUSPEND) != 0) {
- sleep_abort(v);
error = EDEADLK;
goto fail_suspend;
}
suspend_randomness();
if (sleep_setstate(v)) {
- sleep_abort(v);
error = ENOTBLK;
goto fail_pts;
}
-/* $OpenBSD: device.h,v 1.66 2023/07/08 14:44:43 tobhe Exp $ */
+/* $OpenBSD: device.h,v 1.67 2024/05/28 09:40:40 kettenis Exp $ */
/* $NetBSD: device.h,v 1.15 1996/04/09 20:55:24 cgd Exp $ */
/*
int sleep_showstate(void *v, int sleepmode);
int sleep_setstate(void *v);
int sleep_resume(void *v);
-void sleep_abort(void *v);
int gosleep(void *v);
int suspend_finish(void *v);