diff options
author | Dave Airlie <airlied@redhat.com> | 2010-12-05 21:30:31 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-01-04 22:42:59 -0500 |
commit | 6c2df40ec00e52a5fb0c691b0e79324b9015aaa4 (patch) | |
tree | 3e8b3a425304f1ae2856623359e1438a84c5e0d8 /drivers/gpu/vga/vga_switcheroo.c | |
parent | 17db7042b7ff77a4ae8b83ab42ec8286a9715a48 (diff) |
vga_switcheroo: print the IGD/DIS flag in the debugfs output.
We really want to see this so we can confirm that we pick the right one.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/vga/vga_switcheroo.c')
-rw-r--r-- | drivers/gpu/vga/vga_switcheroo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/vga/vga_switcheroo.c b/drivers/gpu/vga/vga_switcheroo.c index c8768f38511e..0a8678fe4d64 100644 --- a/drivers/gpu/vga/vga_switcheroo.c +++ b/drivers/gpu/vga/vga_switcheroo.c | |||
@@ -174,7 +174,8 @@ static int vga_switcheroo_show(struct seq_file *m, void *v) | |||
174 | int i; | 174 | int i; |
175 | mutex_lock(&vgasr_mutex); | 175 | mutex_lock(&vgasr_mutex); |
176 | for (i = 0; i < VGA_SWITCHEROO_MAX_CLIENTS; i++) { | 176 | for (i = 0; i < VGA_SWITCHEROO_MAX_CLIENTS; i++) { |
177 | seq_printf(m, "%d:%c:%s:%s\n", i, | 177 | seq_printf(m, "%d:%s:%c:%s:%s\n", i, |
178 | vgasr_priv.clients[i].id == VGA_SWITCHEROO_DIS ? "DIS" : "IGD", | ||
178 | vgasr_priv.clients[i].active ? '+' : ' ', | 179 | vgasr_priv.clients[i].active ? '+' : ' ', |
179 | vgasr_priv.clients[i].pwr_state ? "Pwr" : "Off", | 180 | vgasr_priv.clients[i].pwr_state ? "Pwr" : "Off", |
180 | pci_name(vgasr_priv.clients[i].pdev)); | 181 | pci_name(vgasr_priv.clients[i].pdev)); |