diff mbox

[SRU,Trusty,lts-vivid,lts-wily,Xenial,Yakkety,[PATCH,1/1] UBUNTU: SAUCE: (no-up) ACPICA: Dispatcher: Update thread ID for recursive method calls

Message ID 81b201d7c75696e3264d1317c1509082b657e0db.1462550298.git.joseph.salisbury@canonical.com
State New
Headers show

Commit Message

Joseph Salisbury May 6, 2016, 8:39 p.m. UTC
From: Prarit Bhargava <prarit@redhat.com>

BugLink: http://bugs.launchpad.net/bugs/1577898

ACPICA commit 7a3bd2d962f221809f25ddb826c9e551b916eb25

Set the mutex owner thread ID.
Original patch from: Prarit Bhargava <prarit@redhat.com>

Link: https://github.com/acpica/acpica/commit/7a3bd2d9
Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Joseph Salisbury <joseph.salisbury@canonical.com>
---
 drivers/acpi/acpica/dsmethod.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Tim Gardner May 6, 2016, 8:44 p.m. UTC | #1
Looks to have had sufficient review. Test results are positive.
Stefan Bader May 10, 2016, 1:09 p.m. UTC | #2
Good testing and looks fairly non-intrusive (though a bit obscure).
diff mbox

Patch

diff --git a/drivers/acpi/acpica/dsmethod.c b/drivers/acpi/acpica/dsmethod.c
index bc32f31..28c50c6 100644
--- a/drivers/acpi/acpica/dsmethod.c
+++ b/drivers/acpi/acpica/dsmethod.c
@@ -417,6 +417,9 @@  acpi_ds_begin_method_execution(struct acpi_namespace_node *method_node,
 				obj_desc->method.mutex->mutex.
 				    original_sync_level =
 				    obj_desc->method.mutex->mutex.sync_level;
+
+				obj_desc->method.mutex->mutex.thread_id =
+				    acpi_os_get_thread_id();
 			}
 		}