diff mbox

[RFC,2/3] ACPI: Add GPE number in wakeup device list

Message ID 845bbddc6aa4226c51c2cec61c2f451368ad7422.1513233415.git.lv.zheng@intel.com (mailing list archive)
State RFC, archived
Headers show

Commit Message

Lv Zheng Dec. 14, 2017, 6:38 a.m. UTC
This patch adds GPE wakeup number in /proc/acpi/wakeup.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
---
 drivers/acpi/proc.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/drivers/acpi/proc.c b/drivers/acpi/proc.c
index 652f19e..32fdec4 100644
--- a/drivers/acpi/proc.c
+++ b/drivers/acpi/proc.c
@@ -24,7 +24,7 @@  acpi_system_wakeup_device_seq_show(struct seq_file *seq, void *offset)
 {
 	struct list_head *node, *next;
 
-	seq_printf(seq, "Device\tS-state\t  Status   Sysfs node\n");
+	seq_printf(seq, "Device\tS-state\tGPE\t  Status   Sysfs node\n");
 
 	mutex_lock(&acpi_device_lock);
 	list_for_each_safe(node, next, &acpi_wakeup_device_list) {
@@ -35,9 +35,10 @@  acpi_system_wakeup_device_seq_show(struct seq_file *seq, void *offset)
 		if (!dev->wakeup.flags.valid)
 			continue;
 
-		seq_printf(seq, "%s\t  S%d\t",
+		seq_printf(seq, "%s\t  S%d\t%02x\t",
 			   dev->pnp.bus_id,
-			   (u32) dev->wakeup.sleep_state);
+			   (u32) dev->wakeup.sleep_state,
+			   (u8) dev->wakeup.gpe_number);
 
 		mutex_lock(&dev->physical_node_lock);