Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/linux-olpc-xo1/acpi-c3.patch
blob: a5b799720fad7ba05becaa1f0832352834ad3eef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -rauN a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
--- a/drivers/acpi/processor_idle.c	2022-05-02 21:01:51.302162225 +0200
+++ b/drivers/acpi/processor_idle.c	2022-05-02 21:04:58.169438104 +0200
@@ -796,6 +796,8 @@
 		    cx->type == ACPI_STATE_C3) {
 			state->enter_dead = acpi_idle_play_dead;
 			drv->safe_state_index = count;
+			if (cx->type != ACPI_STATE_C3)
+				drv->safe_state_index = count;
 		}
 		/*
 		 * Halt-induced C1 is not good for ->enter_s2idle, because it