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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jun 2017 04:41:54 +0000 (06:41 +0200)
commitd2beb1a9dd824bcf442e025cbf7fd1e3b4cf8db2
treec22f3500ce6dd4547cea34c9c86ba2d80cc5e889
parentef66745a1bd231a2c53639de27e4d6bcd00be4cc
drm/nouveau: Rename acpi_work to hpd_work

[ Upstream commit 81280d0e24e76c35f40f997af26c779bcb10b04d ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/nouveau/nouveau_display.c
drivers/gpu/drm/nouveau/nouveau_drv.h