Skip to content

Commit 6c4b264

Browse files
Dong Aishengchanwoochoi
authored andcommitted
PM / devfreq: imx8m-ddrc: Remove imx8m_ddrc_get_dev_status
Current driver actually does not support simple ondemand governor as it's unable to provide device load information. So removing the unnecessary callback to avoid confusing. Right now the driver is using userspace governor by default. polling_ms was also dropped as it's not needed for non-ondemand governor. Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
1 parent 05f1531 commit 6c4b264

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

drivers/devfreq/imx8m-ddrc.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -280,18 +280,6 @@ static int imx8m_ddrc_get_cur_freq(struct device *dev, unsigned long *freq)
280280
return 0;
281281
}
282282

283-
static int imx8m_ddrc_get_dev_status(struct device *dev,
284-
struct devfreq_dev_status *stat)
285-
{
286-
struct imx8m_ddrc *priv = dev_get_drvdata(dev);
287-
288-
stat->busy_time = 0;
289-
stat->total_time = 0;
290-
stat->current_frequency = clk_get_rate(priv->dram_core);
291-
292-
return 0;
293-
}
294-
295283
static int imx8m_ddrc_init_freq_info(struct device *dev)
296284
{
297285
struct imx8m_ddrc *priv = dev_get_drvdata(dev);
@@ -429,9 +417,7 @@ static int imx8m_ddrc_probe(struct platform_device *pdev)
429417
if (ret < 0)
430418
goto err;
431419

432-
priv->profile.polling_ms = 1000;
433420
priv->profile.target = imx8m_ddrc_target;
434-
priv->profile.get_dev_status = imx8m_ddrc_get_dev_status;
435421
priv->profile.exit = imx8m_ddrc_exit;
436422
priv->profile.get_cur_freq = imx8m_ddrc_get_cur_freq;
437423
priv->profile.initial_freq = clk_get_rate(priv->dram_core);

0 commit comments

Comments
 (0)