mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-04 09:09:56 +00:00
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
This commit is contained in:
parent
7d62e533fb
commit
5d56add2ba
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=152248
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user