-/* $OpenBSD: acpi_machdep.c,v 1.97 2022/02/10 16:41:51 deraadt Exp $ */
+/* $OpenBSD: acpi_machdep.c,v 1.98 2022/02/11 01:55:12 deraadt Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
*
}
#ifndef SMALL_KERNEL
-
-void
-sleep_clocks(void *v)
-{
- rtcstop();
-
-#if NLAPIC > 0
- lapic_disable();
-#endif
-}
-
/*
* This function may not have local variables due to a bug between
* acpi_savecpu() and the resume path.
int
acpi_sleep_cpu(struct acpi_softc *sc, int state)
{
+ rtcstop();
+#if NLAPIC > 0
+ lapic_disable();
+#endif
+
/*
* ACPI defines two wakeup vectors. One is used for ACPI 1.0
* implementations - it's in the FACS table as wakeup_vector and
-/* $OpenBSD: apm.c,v 1.11 2022/02/11 00:43:27 deraadt Exp $ */
+/* $OpenBSD: apm.c,v 1.12 2022/02/11 01:55:12 deraadt Exp $ */
/*-
* Copyright (c) 2001 Alexander Guy. All rights reserved.
#ifdef SUSPEND
-void
-sleep_clocks(void *v)
-{
-}
-
#ifdef MULTIPROCESSOR
void
-/* $OpenBSD: acpi_machdep.c,v 1.79 2022/02/10 16:41:53 deraadt Exp $ */
+/* $OpenBSD: acpi_machdep.c,v 1.80 2022/02/11 01:55:12 deraadt Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
*
int save_lapic_tpr;
#endif
-void
-sleep_clocks(void *v)
-{
- rtcstop();
-
-#if NLAPIC > 0
- save_lapic_tpr = lapic_tpr;
- lapic_disable();
-#endif
-}
-
/*
* This function may not have local variables due to a bug between
* acpi_savecpu() and the resume path.
int
acpi_sleep_cpu(struct acpi_softc *sc, int state)
{
+ rtcstop();
+#if NLAPIC > 0
+ save_lapic_tpr = lapic_tpr;
+ lapic_disable();
+#endif
+
/* i386 does lazy pmap_activate: switch to kernel memory view */
pmap_activate(curproc);
-/* $OpenBSD: apm.c,v 1.25 2022/02/10 05:48:02 gkoehler Exp $ */
+/* $OpenBSD: apm.c,v 1.26 2022/02/11 01:55:12 deraadt Exp $ */
/*-
* Copyright (c) 2001 Alexander Guy. All rights reserved.
}
#ifdef SUSPEND
-void
-sleep_clocks(void *v)
-{
-}
-
int
sleep_showstate(void *v, int sleepmode)
{
-/* $OpenBSD: subr_suspend.c,v 1.2 2022/02/10 16:41:53 deraadt Exp $ */
+/* $OpenBSD: subr_suspend.c,v 1.3 2022/02/11 01:55:12 deraadt Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
if (config_suspend_all(DVACT_SUSPEND) != 0)
goto fail_suspend;
- sleep_clocks(v);
suspend_randomness();
-/* $OpenBSD: device.h,v 1.57 2022/02/08 17:25:12 deraadt Exp $ */
+/* $OpenBSD: device.h,v 1.58 2022/02/11 01:55:12 deraadt Exp $ */
/* $NetBSD: device.h,v 1.15 1996/04/09 20:55:24 cgd Exp $ */
/*
int sleep_state(void *, int);
#define SLEEP_SUSPEND 0x01
#define SLEEP_HIBERNATE 0x02
-void sleep_clocks(void *);
void sleep_mp(void);
void resume_mp(void);
int sleep_showstate(void *v, int sleepmode);