]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
PM / devfreq: imx8m-ddrc: Remove imx8m_ddrc_get_dev_status
authorDong Aisheng <aisheng.dong@nxp.com>
Tue, 23 Mar 2021 07:20:11 +0000 (15:20 +0800)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 8 Apr 2021 04:14:51 +0000 (13:14 +0900)
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>
drivers/devfreq/imx8m-ddrc.c

index bc82d3653bff87fdd0d8e204b03ad53b2955e60b..ecb9375aa877bf2447ecb3b91cd2b255805706a6 100644 (file)
@@ -280,18 +280,6 @@ static int imx8m_ddrc_get_cur_freq(struct device *dev, unsigned long *freq)
        return 0;
 }
 
-static int imx8m_ddrc_get_dev_status(struct device *dev,
-                                    struct devfreq_dev_status *stat)
-{
-       struct imx8m_ddrc *priv = dev_get_drvdata(dev);
-
-       stat->busy_time = 0;
-       stat->total_time = 0;
-       stat->current_frequency = clk_get_rate(priv->dram_core);
-
-       return 0;
-}
-
 static int imx8m_ddrc_init_freq_info(struct device *dev)
 {
        struct imx8m_ddrc *priv = dev_get_drvdata(dev);
@@ -429,9 +417,7 @@ static int imx8m_ddrc_probe(struct platform_device *pdev)
        if (ret < 0)
                goto err;
 
-       priv->profile.polling_ms = 1000;
        priv->profile.target = imx8m_ddrc_target;
-       priv->profile.get_dev_status = imx8m_ddrc_get_dev_status;
        priv->profile.exit = imx8m_ddrc_exit;
        priv->profile.get_cur_freq = imx8m_ddrc_get_cur_freq;
        priv->profile.initial_freq = clk_get_rate(priv->dram_core);