summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/Osd
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-10-26 06:32:21 +0000
committerjhb <jhb@FreeBSD.org>2001-10-26 06:32:21 +0000
commite1bba71fc994749776fc980d0ba8779a3c728bd1 (patch)
tree4970e512925cb61a446831a485b367f3b71fa0ef /sys/dev/acpica/Osd
parentd410ad416617dd759436028e1cb0f545fe5f5d07 (diff)
downloadFreeBSD-src-e1bba71fc994749776fc980d0ba8779a3c728bd1.zip
FreeBSD-src-e1bba71fc994749776fc980d0ba8779a3c728bd1.tar.gz
Add locking to taskqueues. There is one mutex per task, one mutex per
queue, and a mutex to protect the global list of taskqueues. The only visible change is that a TASK_DESTROY() macro has been added to mirror the TASK_INIT() macro to destroy a task before it is free'd. Submitted by: Andrew Reiter <awr@watson.org>
Diffstat (limited to 'sys/dev/acpica/Osd')
-rw-r--r--sys/dev/acpica/Osd/OsdSchedule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/acpica/Osd/OsdSchedule.c b/sys/dev/acpica/Osd/OsdSchedule.c
index 8a952df..6dcc521 100644
--- a/sys/dev/acpica/Osd/OsdSchedule.c
+++ b/sys/dev/acpica/Osd/OsdSchedule.c
@@ -113,6 +113,7 @@ AcpiOsExecuteQueue(void *arg, int pending)
Function = (OSD_EXECUTION_CALLBACK)at->at_function;
Context = at->at_context;
+ TASK_DESTROY(at);
free(at, M_ACPITASK);
Function(Context);
OpenPOWER on IntegriCloud