Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228828
b: refs/heads/master
c: d1fbd92
h: refs/heads/master
v: v3
  • Loading branch information
Dave Airlie committed Jan 5, 2011
1 parent dfacb0b commit 7ba9782
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5ccb377feaaff3daa1e9a179534bbd7550d78af6
refs/heads/master: d1fbd923da0f982f12b61a44e74c2e1f74c6ef56
11 changes: 8 additions & 3 deletions trunk/drivers/gpu/drm/nouveau/nouveau_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,15 @@ static int nouveau_dsm_init(void)

static int nouveau_dsm_get_client_id(struct pci_dev *pdev)
{
if (nouveau_dsm_priv.dhandle == DEVICE_ACPI_HANDLE(&pdev->dev))
/* easy option one - intel vendor ID means Integrated */
if (pdev->vendor == PCI_VENDOR_ID_INTEL)
return VGA_SWITCHEROO_IGD;
else
return VGA_SWITCHEROO_DIS;

/* is this device on Bus 0? - this may need improving */
if (pdev->bus->number == 0)
return VGA_SWITCHEROO_IGD;

return VGA_SWITCHEROO_DIS;
}

static struct vga_switcheroo_handler nouveau_dsm_handler = {
Expand Down

0 comments on commit 7ba9782

Please sign in to comment.