Merge "drivers: soc: qcom_stats: Export function qcom_stats_ddr_freqsync_msg()"

This commit is contained in:
qctecmdr 2023-07-31 07:04:38 -07:00 committed by Gerrit - the friendly Code Review server
commit 754e1b878c
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)