]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r332918, r333222: go deeper for ACPI suspend bounce test
authoravg <avg@FreeBSD.org>
Fri, 22 Jun 2018 10:39:22 +0000 (10:39 +0000)
committeravg <avg@FreeBSD.org>
Fri, 22 Jun 2018 10:39:22 +0000 (10:39 +0000)
commitf023cd7cbd9d9d6b832e2e0e68d6d0f53a193452
tree56c598e525a20a994a53925da9448361ccb4e91c
parentb898873e2b22f85c18d7b818a4e99f58bccafe8c
MFC r332918, r333222: go deeper for ACPI suspend bounce test

debug.acpi.suspend_bounce sysctl now allows a deeper dive into the sleep
abyss.  The system will execute the suspend sequence up to the call to
AcpiEnterSleepState().  That includes saving processor contexts and
parking APs.  Then, instead of actually entering the sleep state, the
BSP will call resumectx() to emulate the wakeup.  The APs should get
restarted by the sequence of Init and Startup IPIs that BSP sends to
them.

AcpiOsEnterSleep() is used to implement this feature.

Joint work with jkim.
sys/dev/acpica/Osd/OsdHardware.c
sys/dev/acpica/acpi.c
sys/x86/acpica/acpi_wakeup.c