Wed Jul 24 02:45:53 2013 UTC ()
Ifdef out call to drm_sysfs_hotplug_event in drm_crtc_helper.c.


(riastradh)
diff -r1.1.1.1.2.5 -r1.1.1.1.2.6 src/sys/external/bsd/drm2/dist/drm/drm_crtc_helper.c

cvs diff -r1.1.1.1.2.5 -r1.1.1.1.2.6 src/sys/external/bsd/drm2/dist/drm/drm_crtc_helper.c (expand / switch to unified diff)

--- src/sys/external/bsd/drm2/dist/drm/drm_crtc_helper.c 2013/07/24 02:22:13 1.1.1.1.2.5
+++ src/sys/external/bsd/drm2/dist/drm/drm_crtc_helper.c 2013/07/24 02:45:53 1.1.1.1.2.6
@@ -956,27 +956,29 @@ int drm_helper_resume_force_mode(struct  @@ -956,27 +956,29 @@ int drm_helper_resume_force_mode(struct
956 (*crtc_funcs->dpms) (crtc, 956 (*crtc_funcs->dpms) (crtc,
957 drm_helper_choose_crtc_dpms(crtc)); 957 drm_helper_choose_crtc_dpms(crtc));
958 } 958 }
959 } 959 }
960 /* disable the unused connectors while restoring the modesetting */ 960 /* disable the unused connectors while restoring the modesetting */
961 drm_helper_disable_unused_functions(dev); 961 drm_helper_disable_unused_functions(dev);
962 return 0; 962 return 0;
963} 963}
964EXPORT_SYMBOL(drm_helper_resume_force_mode); 964EXPORT_SYMBOL(drm_helper_resume_force_mode);
965 965
966void drm_kms_helper_hotplug_event(struct drm_device *dev) 966void drm_kms_helper_hotplug_event(struct drm_device *dev)
967{ 967{
968 /* send a uevent + call fbdev */ 968 /* send a uevent + call fbdev */
 969#ifndef __NetBSD__ /* XXX pmf event or something? */
969 drm_sysfs_hotplug_event(dev); 970 drm_sysfs_hotplug_event(dev);
 971#endif
970 if (dev->mode_config.funcs->output_poll_changed) 972 if (dev->mode_config.funcs->output_poll_changed)
971 dev->mode_config.funcs->output_poll_changed(dev); 973 dev->mode_config.funcs->output_poll_changed(dev);
972} 974}
973EXPORT_SYMBOL(drm_kms_helper_hotplug_event); 975EXPORT_SYMBOL(drm_kms_helper_hotplug_event);
974 976
975#define DRM_OUTPUT_POLL_PERIOD (10*HZ) 977#define DRM_OUTPUT_POLL_PERIOD (10*HZ)
976static void output_poll_execute(struct work_struct *work) 978static void output_poll_execute(struct work_struct *work)
977{ 979{
978 struct delayed_work *delayed_work = to_delayed_work(work); 980 struct delayed_work *delayed_work = to_delayed_work(work);
979 struct drm_device *dev = container_of(delayed_work, struct drm_device, mode_config.output_poll_work); 981 struct drm_device *dev = container_of(delayed_work, struct drm_device, mode_config.output_poll_work);
980 struct drm_connector *connector; 982 struct drm_connector *connector;
981 enum drm_connector_status old_status; 983 enum drm_connector_status old_status;
982 bool repoll = false, changed = false; 984 bool repoll = false, changed = false;