drm/nouveau: only runtime suspend by default in optimus configuration
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 12 Dec 2013 03:19:01 +0000 (22:19 -0500)
committerDave Airlie <airlied@redhat.com>
Mon, 16 Dec 2013 02:43:55 +0000 (12:43 +1000)
commitb25b4427e9dfba073cf9bc86603956ed395eb6e3
treee3db086cd3722db2bba8d464e051e745b3891460
parent0f58411d4fd704d8958879fb08751eae3573271b
drm/nouveau: only runtime suspend by default in optimus configuration

The intent was to only enable it by default for optimus, e.g. see the
runtime_idle callback. The suspend callback may be called directly, e.g.
as a result of nouveau_crtc_set_config.

Reported-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Tested-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/nouveau_drm.c