]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: make system freeze support depend on CONFIG_ACPI_SLEEP
authorImre Deak <imre.deak@intel.com>
Mon, 23 Jun 2014 12:46:02 +0000 (15:46 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 8 Jul 2014 10:30:15 +0000 (12:30 +0200)
commitb666b92ab2e68085ff94b3ab510001229a6b3b41
treefcbca97266e2d9720bfe5d2f169c0db4111125cf
parent230344b874a5c5889de2cff74acdc3dd9cb25bc9
drm/i915: make system freeze support depend on CONFIG_ACPI_SLEEP

To achieve further power savings during system freeze (aka connected
standby, or s0ix) we have to send a PCI_D1 opregion notification. As
the information about the state we're entering (system freeze,
suspend to ram or suspend to disk) is only available through the ACPI
subsystem, make this support depend on the relevant kconfig option.
Things will still work if this option isn't set, albeit with less than
optimial power saving.

This also fixes a compile breakage when the option is not set introduced
in

commit c2f46f83baa6f1f5fade141498da9a4677a4b768
Author: Jesse Barnes <jbarnes@virtuousgeek.org>
Date:   Thu Jun 12 08:35:47 2014 -0700

    drm/i915: send proper opregion notifications on suspend/resume

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c