mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue