]> git.baikalelectronics.ru Git - kernel.git/commit
vgaarb: Add support for setting the default video device (v2)
authorMatthew Garrett <mjg@redhat.com>
Mon, 16 Apr 2012 20:26:02 +0000 (16:26 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 24 Apr 2012 08:50:15 +0000 (09:50 +0100)
commitd8a6d1f854ac02c3c43ffc3f4009decd295deb84
tree90f45eed83bcd5308ac9ad850844d0b57038e5f8
parent8b57949067ab5e00b0c228fc63ab730e87021e2e
vgaarb: Add support for setting the default video device (v2)

The default VGA device is a somewhat fluid concept on platforms with
multiple GPUs. Add support for setting it so switching code can update
things appropriately, and make sure that the sysfs code returns the right
device if it's changed.

v2: Updated to fix builds when __ARCH_HAS_VGA_DEFAULT_DEVICE is false.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Acked-by: benh@kernel.crashing.org
Cc: airlied@redhat.com
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/vga/vgaarb.c
drivers/pci/pci-sysfs.c
include/linux/vgaarb.h