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 <quic_minghao@quicinc.com>
This commit is contained in:
Minghao Zhang 2023-07-27 17:43:06 +08:00
parent 736a29eaf3
commit 5638d48e68
2 changed files with 5 additions and 1 deletions

View file

@ -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)
{

View file

@ -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)