Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177054026
D61134.1793773630.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
792 B
Referenced Files
None
Subscribers
None
D61134.1793773630.diff
View Options
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -3641,6 +3641,12 @@
register_t rflags)
{
+ if (acpi_susp_bounce) {
+ device_printf(sc->acpi_dev,
+ "debug.acpi.suspend_bounce set; not suspending-to-idle\n");
+ goto bounce;
+ }
+
intr_suspend();
/*
@@ -3660,6 +3666,8 @@
cpu_idle(0);
intr_resume(false);
+
+bounce:
intr_restore(rflags);
*slp_state |= ACPI_SS_SLEPT;
}
@@ -3874,7 +3882,7 @@
EVENTHANDLER_INVOKE(power_resume, stype);
- if (ACPI_SUCCESS(status)) {
+ if (ACPI_SUCCESS(status) && !acpi_susp_bounce) {
if (stype == POWER_STYPE_SUSPEND_TO_IDLE)
check_post_suspend_to_idle(sc->acpi_dev);
EVENTHANDLER_INVOKE(power_resume_check, stype);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 4, 6:27 AM (19 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41374803
Default Alt Text
D61134.1793773630.diff (792 B)
Attached To
Mode
D61134: acpi: Implement debug.acpi.suspend_bounce for suspend-to-idle
Attached
Detach File
Event Timeline