diff options
author | Dave Airlie <airlied@redhat.com> | 2010-06-01 09:09:06 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-06-01 10:36:02 +1000 |
commit | fbf81762e385d3d45acad057b654d56972acf58c (patch) | |
tree | bc1b9e31e92ca702ea808650fda45443145f6776 /drivers/gpu/drm/radeon/radeon_device.c | |
parent | fc5ea29d72bde1bec230538becf396caad8621b8 (diff) |
drm/kms: disable/enable poll around switcheroo on/off
Because we aren't in a suspend state the poll will still run when we have switcherooed a card off.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_device.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c index fdc3fdf78ac..db338522191 100644 --- a/drivers/gpu/drm/radeon/radeon_device.c +++ b/drivers/gpu/drm/radeon/radeon_device.c @@ -546,8 +546,10 @@ static void radeon_switcheroo_set_state(struct pci_dev *pdev, enum vga_switchero /* don't suspend or resume card normally */ rdev->powered_down = false; radeon_resume_kms(dev); + drm_kms_helper_poll_enable(dev); } else { printk(KERN_INFO "radeon: switched off\n"); + drm_kms_helper_poll_disable(dev); radeon_suspend_kms(dev, pmm); /* don't suspend or resume card normally */ rdev->powered_down = true; |