summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-08-05 20:53:32 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-08-07 16:00:02 +0200
commita3df8bbe0a704fa5c1609b9666b594f350558fe0 (patch)
tree79dbcf21fb7eedd10d3c82d25d3f9105c84b84a9 /tools/perf/scripts/python
parent075b74841bd0065a3bda3440873c747938e69b68 (diff)
ACPI: TAD: Add locking around AML evaluations
In the ACPI TAD driver, there are hidden assumptions that the ACPI control methods used by it will not be evaluated concurrently due to ACPICA namespace and interpreter locking. However, that may not be the case since ACPICA may drop and re-acquire the namespace and interpreter locks during the evaluation of a given object in a few cases, including the one in which the AML in question sleeps causing acpi_ex_system_do_sleep() to be called. In that case, the evaluation of one control method may be started while the evaluation of another one is still in progress. For this reason, add a global lock to the ACPI TAD driver and acquire it every time before evaluating an ACPI control method, except for the initial evaluation of _GCP in acpi_tad_probe(). Fixes: 95c513ec84f7 ("ACPI: Add Time and Alarm Device (TAD) driver") Cc: All applicable <stable@vger.kernel.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Link: https://patch.msgid.link/12951141.O9o76ZdvQC@rafael.j.wysocki
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions