gpu: drm: use power efficient workingqueues

Change-Id: Id6fe0d3ebf7eabb423f2ec64d79075c0e3ba9e14
Signed-off-by: Samuel Pascua <sgpascua@ngcp.ph>
Signed-off-by: Samuel Pascua <pascua.samuel.14@gmail.com>
This commit is contained in:
freak07 2019-07-19 10:46:24 +02:00 committed by Ksawlii
parent 630769e32b
commit 2406291b8b

View file

@ -273,7 +273,8 @@ void drm_kms_helper_poll_enable(struct drm_device *dev)
} }
if (poll) if (poll)
schedule_delayed_work(&dev->mode_config.output_poll_work, delay); queue_delayed_work(system_power_efficient_wq,
&dev->mode_config.output_poll_work, delay);
} }
EXPORT_SYMBOL(drm_kms_helper_poll_enable); EXPORT_SYMBOL(drm_kms_helper_poll_enable);
@ -488,7 +489,7 @@ retry:
*/ */
dev->mode_config.delayed_event = true; dev->mode_config.delayed_event = true;
if (dev->mode_config.poll_enabled) if (dev->mode_config.poll_enabled)
mod_delayed_work(system_wq, queue_delayed_work(system_wq,
&dev->mode_config.output_poll_work, &dev->mode_config.output_poll_work,
0); 0);
} }
@ -708,7 +709,8 @@ out:
drm_kms_helper_hotplug_event(dev); drm_kms_helper_hotplug_event(dev);
if (repoll) if (repoll)
schedule_delayed_work(delayed_work, DRM_OUTPUT_POLL_PERIOD); queue_delayed_work(system_power_efficient_wq,
delayed_work, DRM_OUTPUT_POLL_PERIOD);
} }
/** /**