From 5df128deb8f2e04a46acb77df6aec44b1d343583 Mon Sep 17 00:00:00 2001 From: Bo Lan Date: Tue, 15 Apr 2025 11:44:06 +0800 Subject: [PATCH] ANDROID: Allow vendor modules to get wakeup sources data. Export wakeup_sources_stats_open to obtain wakeup source data, which is used to analyze the system standby power consumption problem and perform different processing for different wakeup sources. Bug: 410704199 Change-Id: I056f933dcc12cade514aba3d7095dc1fc375ad80 Signed-off-by: Bo Lan --- drivers/base/power/wakeup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/base/power/wakeup.c b/drivers/base/power/wakeup.c index 87afc7554fc6..c010c03b95ec 100644 --- a/drivers/base/power/wakeup.c +++ b/drivers/base/power/wakeup.c @@ -1216,10 +1216,11 @@ static const struct seq_operations wakeup_sources_stats_seq_ops = { .show = wakeup_sources_stats_seq_show, }; -static int wakeup_sources_stats_open(struct inode *inode, struct file *file) +int wakeup_sources_stats_open(struct inode *inode, struct file *file) { return seq_open_private(file, &wakeup_sources_stats_seq_ops, sizeof(int)); } +EXPORT_SYMBOL_GPL(wakeup_sources_stats_open); static const struct file_operations wakeup_sources_stats_fops = { .owner = THIS_MODULE,