git: f3b4732f7589 - stable/15 - acpi: Tasks: Document why 'acpi_task_count' is accessed unsynchronized
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 08 Oct 2026 12:21:53 UTC
The branch stable/15 has been updated by olce:
URL: https://cgit.FreeBSD.org/src/commit/?id=f3b4732f7589923b96bb005c3faa3e46ca51d7ff
commit f3b4732f7589923b96bb005c3faa3e46ca51d7ff
Author: Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2026-10-02 17:14:16 +0000
Commit: Olivier Certner <olce@FreeBSD.org>
CommitDate: 2026-10-08 12:20:10 +0000
acpi: Tasks: Document why 'acpi_task_count' is accessed unsynchronized
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
(cherry picked from commit e89c3ac5df58a9eae9d01f325ffc9b34258c4b29)
---
sys/dev/acpica/Osd/OsdSchedule.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/dev/acpica/Osd/OsdSchedule.c b/sys/dev/acpica/Osd/OsdSchedule.c
index d4be416f94e2..c39d4112a039 100644
--- a/sys/dev/acpica/Osd/OsdSchedule.c
+++ b/sys/dev/acpica/Osd/OsdSchedule.c
@@ -83,6 +83,7 @@ struct acpi_task_ctx {
struct taskqueue *acpi_taskq;
static struct acpi_task_ctx *acpi_tasks;
+/* Unsynchronized as only useful in the mono-CPU startup phase. */
static int acpi_task_count;
static int acpi_taskq_started;