drm_kms_helper_is_poll_worker —
is current
task an output poll worker?
bool drm_kms_helper_is_poll_worker ( | void) ; |
Determine if current
task is an output poll worker. This can be used
to select distinct code paths for output polling versus other contexts.
One use case is to avoid a deadlock between the output poll worker and
the autosuspend worker wherein the latter waits for polling to finish
upon calling drm_kms_helper_poll_disable
, while the former waits for
runtime suspend to finish upon calling pm_runtime_get_sync
in a
connector ->detect hook.