You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qubes-linux-kernel/patches.suse/acpi-don-t-preempt-until-th...

26 lines
631 B

From: Jeff Mahoney <jeffm@suse.com>
Subject: acpi: don't preempt until the system is up
Patch-mainline: Probably never
This is needed to avoid scheduling while atomic BUGs with the
DSDT in initramfs patches.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
---
drivers/acpi/acpica/psloop.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/drivers/acpi/acpica/psloop.c
+++ b/drivers/acpi/acpica/psloop.c
@@ -843,7 +843,8 @@ acpi_ps_complete_op(struct acpi_walk_sta
*op = NULL;
}
- ACPI_PREEMPTION_POINT();
+ if (system_state == SYSTEM_RUNNING)
+ ACPI_PREEMPTION_POINT();
return_ACPI_STATUS(AE_OK);
}