diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-09 22:30:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-09 22:30:17 -0400 |
commit | e5149cc44cf9c5e23fbe34515fc6b4b91c0e48c4 (patch) | |
tree | f6c3c7401f827d91d77702cb2177d3c4fa0e625d /drivers | |
parent | 45d7f32c7a43cbb9592886d38190e379e2eb2226 (diff) | |
parent | 9a919c46dfa48a9c1f465174609b90253eb8ffc1 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq:
drm: fix fallouts from slow-work -> wq conversion
workqueue: workqueue_cpu_callback() should be cpu_notifier instead of hotcpu_notifier
workqueue: add missing __percpu markup in kernel/workqueue.c
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/drm_crtc_helper.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c index 45981304feb8..b9e4dbfa0533 100644 --- a/drivers/gpu/drm/drm_crtc_helper.c +++ b/drivers/gpu/drm/drm_crtc_helper.c | |||
@@ -839,7 +839,6 @@ static void output_poll_execute(struct work_struct *work) | |||
839 | struct drm_connector *connector; | 839 | struct drm_connector *connector; |
840 | enum drm_connector_status old_status, status; | 840 | enum drm_connector_status old_status, status; |
841 | bool repoll = false, changed = false; | 841 | bool repoll = false, changed = false; |
842 | int ret; | ||
843 | 842 | ||
844 | mutex_lock(&dev->mode_config.mutex); | 843 | mutex_lock(&dev->mode_config.mutex); |
845 | list_for_each_entry(connector, &dev->mode_config.connector_list, head) { | 844 | list_for_each_entry(connector, &dev->mode_config.connector_list, head) { |
@@ -874,11 +873,8 @@ static void output_poll_execute(struct work_struct *work) | |||
874 | dev->mode_config.funcs->output_poll_changed(dev); | 873 | dev->mode_config.funcs->output_poll_changed(dev); |
875 | } | 874 | } |
876 | 875 | ||
877 | if (repoll) { | 876 | if (repoll) |
878 | ret = queue_delayed_work(system_nrt_wq, delayed_work, DRM_OUTPUT_POLL_PERIOD); | 877 | queue_delayed_work(system_nrt_wq, delayed_work, DRM_OUTPUT_POLL_PERIOD); |
879 | if (ret) | ||
880 | DRM_ERROR("delayed enqueue failed %d\n", ret); | ||
881 | } | ||
882 | } | 878 | } |
883 | 879 | ||
884 | void drm_kms_helper_poll_disable(struct drm_device *dev) | 880 | void drm_kms_helper_poll_disable(struct drm_device *dev) |
@@ -893,18 +889,14 @@ void drm_kms_helper_poll_enable(struct drm_device *dev) | |||
893 | { | 889 | { |
894 | bool poll = false; | 890 | bool poll = false; |
895 | struct drm_connector *connector; | 891 | struct drm_connector *connector; |
896 | int ret; | ||
897 | 892 | ||
898 | list_for_each_entry(connector, &dev->mode_config.connector_list, head) { | 893 | list_for_each_entry(connector, &dev->mode_config.connector_list, head) { |
899 | if (connector->polled) | 894 | if (connector->polled) |
900 | poll = true; | 895 | poll = true; |
901 | } | 896 | } |
902 | 897 | ||
903 | if (poll) { | 898 | if (poll) |
904 | ret = queue_delayed_work(system_nrt_wq, &dev->mode_config.output_poll_work, DRM_OUTPUT_POLL_PERIOD); | 899 | queue_delayed_work(system_nrt_wq, &dev->mode_config.output_poll_work, DRM_OUTPUT_POLL_PERIOD); |
905 | if (ret) | ||
906 | DRM_ERROR("delayed enqueue failed %d\n", ret); | ||
907 | } | ||
908 | } | 900 | } |
909 | EXPORT_SYMBOL(drm_kms_helper_poll_enable); | 901 | EXPORT_SYMBOL(drm_kms_helper_poll_enable); |
910 | 902 | ||