diff options
author | imp <imp@FreeBSD.org> | 2005-11-09 16:22:56 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2005-11-09 16:22:56 +0000 |
commit | 53b73d2a3139ee5ada71e8c7099ada19311ae53a (patch) | |
tree | 18e80312f6d5f394d4901e2393db026219557125 /sys | |
parent | e40bee48f755d6c81982784ddc2ad489d9e7dee8 (diff) | |
download | FreeBSD-src-53b73d2a3139ee5ada71e8c7099ada19311ae53a.zip FreeBSD-src-53b73d2a3139ee5ada71e8c7099ada19311ae53a.tar.gz |
General consensus is that it would be even better to run this in a
thread context. While it doesn't matter too much at the moment, in
the future we could be back in the same boat if/when more restrictions
are placed (or enforced) in a SWI.
Suggested by: njl, bde, jhb, scottl
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/subr_power.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_power.c b/sys/kern/subr_power.c index a6eea85..ac6cd71 100644 --- a/sys/kern/subr_power.c +++ b/sys/kern/subr_power.c @@ -84,7 +84,7 @@ power_pm_suspend(int state) state != POWER_SLEEP_STATE_HIBERNATE) return; power_pm_task.ta_context = (void *)(intptr_t)state; - taskqueue_enqueue(taskqueue_swi, &power_pm_task); + taskqueue_enqueue(taskqueue_thread, &power_pm_task); } /* |