]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau: Rename acpi_work to hpd_work
authorHans de Goede <hdegoede@redhat.com>
Mon, 21 Nov 2016 16:50:54 +0000 (17:50 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 28 Nov 2016 05:39:35 +0000 (15:39 +1000)
commit7de7e2f5834e64fa98f973f892f40177a8a9f4b4
tree35e0dbf05177bb8e1226594bece9d6ba6ad355fa
parentf13bcde1e2cca8fbe3e91e2db367c8b0f48b04b1
drm/nouveau: Rename acpi_work to hpd_work

We need to call drm_helper_hpd_irq_event() on resume to properly detect
monitor connection / disconnection on some laptops. For runtime-resume
(which gets called on resume from normal suspend too) we must call
drm_helper_hpd_irq_event() from a workqueue to avoid a deadlock.

Rename acpi_work to hpd_work, and move it out of the #ifdef CONFIG_ACPI
blocks to make it suitable for generic work.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_display.c
drivers/gpu/drm/nouveau/nouveau_drv.h