[PATCH 09a/10] ACPI: thinkpad-acpi: let threads be frozen

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Request that thinkpad-acpi threads be frozen during suspend or hibernate.

Signed-off-by: Henrique de Moraes Holschuh <hmh@xxxxxxxxxx>

---

Missed this one, sorry.  Here it is in the proper place on the sequence of
patches (it should come after patch 09 and before patch 10).  I have updated
the git tree as well.

diff --git a/drivers/misc/thinkpad_acpi.c b/drivers/misc/thinkpad_acpi.c
index ccc0e2f..071129e 100644
--- a/drivers/misc/thinkpad_acpi.c
+++ b/drivers/misc/thinkpad_acpi.c
@@ -1097,6 +1097,8 @@ static int hotkey_kthread(void *data)
 	if (tpacpi_lifecycle == TPACPI_LIFE_EXITING)
 		goto exit;
 
+	set_freezable();
+
 	so = 0;
 	si = 1;
 	t = 0;
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux