From 5638d48e6880837d0e9f5a14eb2dfd68b02aa3ec Mon Sep 17 00:00:00 2001 From: Minghao Zhang Date: Thu, 27 Jul 2023 17:43:06 +0800 Subject: [PATCH] drivers: soc: qcom_stats: Export function qcom_stats_ddr_freqsync_msg() This change exports function qcom_stats_ddr_freqsync_msg() for other modules to use. Change-Id: I6c9e213023d754a0cee4fed18d30357ebfe36803 Signed-off-by: Minghao Zhang --- drivers/soc/qcom/qcom_stats.c | 3 ++- include/soc/qcom/qcom_stats.h | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/soc/qcom/qcom_stats.c b/drivers/soc/qcom/qcom_stats.c index da42cb1d5cda..44a875de8d4c 100644 --- a/drivers/soc/qcom/qcom_stats.c +++ b/drivers/soc/qcom/qcom_stats.c @@ -287,7 +287,7 @@ static int qcom_stats_device_open(struct inode *inode, struct file *file) return 0; } -static int qcom_stats_ddr_freqsync_msg(void) +int qcom_stats_ddr_freqsync_msg(void) { static const char buf[MAX_MSG_LEN] = "{class: ddr, action: freqsync}"; int ret = 0; @@ -309,6 +309,7 @@ static int qcom_stats_ddr_freqsync_msg(void) return ret; } +EXPORT_SYMBOL(qcom_stats_ddr_freqsync_msg); static int qcom_stats_ddr_freq_sync(int *modes, struct sleep_stats *stat) { diff --git a/include/soc/qcom/qcom_stats.h b/include/soc/qcom/qcom_stats.h index d0258609cc4f..0ad497a0f552 100644 --- a/include/soc/qcom/qcom_stats.h +++ b/include/soc/qcom/qcom_stats.h @@ -27,6 +27,7 @@ int ddr_stats_get_ss_count(void); int ddr_stats_get_ss_vote_info(int ss_count, struct ddr_stats_ss_vote_info *vote_info); +int qcom_stats_ddr_freqsync_msg(void); int ddr_stats_get_freq_count(void); int ddr_stats_get_residency(int freq_count, struct ddr_freq_residency *data); @@ -44,6 +45,8 @@ static inline int ddr_stats_get_ss_count(void) static inline int ddr_stats_get_ss_vote_info(int ss_count, struct ddr_stats_ss_vote_info *vote_info) { return -ENODEV; } +static inline int qcom_stats_ddr_freqsync_msg(void) +{ return -ENODEV; } static inline int ddr_stats_get_freq_count(void) { return -ENODEV; } int ddr_stats_get_residency(int freq_count, struct ddr_freq_residency *data)