diff options
Diffstat (limited to 'drivers/acpi/sleep')
-rw-r--r-- | drivers/acpi/sleep/proc.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/drivers/acpi/sleep/proc.c b/drivers/acpi/sleep/proc.c index ccc11b33d89c..2d912b71e543 100644 --- a/drivers/acpi/sleep/proc.c +++ b/drivers/acpi/sleep/proc.c | |||
@@ -350,21 +350,31 @@ acpi_system_wakeup_device_seq_show(struct seq_file *seq, void *offset) | |||
350 | { | 350 | { |
351 | struct list_head *node, *next; | 351 | struct list_head *node, *next; |
352 | 352 | ||
353 | seq_printf(seq, "Device Sleep state Status\n"); | 353 | seq_printf(seq, "Device\tS-state\t Status Sysfs node\n"); |
354 | 354 | ||
355 | spin_lock(&acpi_device_lock); | 355 | spin_lock(&acpi_device_lock); |
356 | list_for_each_safe(node, next, &acpi_wakeup_device_list) { | 356 | list_for_each_safe(node, next, &acpi_wakeup_device_list) { |
357 | struct acpi_device *dev = | 357 | struct acpi_device *dev = |
358 | container_of(node, struct acpi_device, wakeup_list); | 358 | container_of(node, struct acpi_device, wakeup_list); |
359 | struct device *ldev; | ||
359 | 360 | ||
360 | if (!dev->wakeup.flags.valid) | 361 | if (!dev->wakeup.flags.valid) |
361 | continue; | 362 | continue; |
362 | spin_unlock(&acpi_device_lock); | 363 | spin_unlock(&acpi_device_lock); |
363 | seq_printf(seq, "%4s %4d %s%8s\n", | 364 | |
365 | ldev = acpi_get_physical_device(dev->handle); | ||
366 | seq_printf(seq, "%s\t S%d\t%c%-8s ", | ||
364 | dev->pnp.bus_id, | 367 | dev->pnp.bus_id, |
365 | (u32) dev->wakeup.sleep_state, | 368 | (u32) dev->wakeup.sleep_state, |
366 | dev->wakeup.flags.run_wake ? "*" : "", | 369 | dev->wakeup.flags.run_wake ? '*' : ' ', |
367 | dev->wakeup.state.enabled ? "enabled" : "disabled"); | 370 | dev->wakeup.state.enabled ? "enabled" : "disabled"); |
371 | if (ldev) | ||
372 | seq_printf(seq, "%s:%s", | ||
373 | ldev->bus ? ldev->bus->name : "no-bus", | ||
374 | ldev->bus_id); | ||
375 | seq_printf(seq, "\n"); | ||
376 | put_device(ldev); | ||
377 | |||
368 | spin_lock(&acpi_device_lock); | 378 | spin_lock(&acpi_device_lock); |
369 | } | 379 | } |
370 | spin_unlock(&acpi_device_lock); | 380 | spin_unlock(&acpi_device_lock); |