Skip to content

Commit 7dbc0d2

Browse files
Dong Aishengchanwoochoi
authored andcommitted
PM / devfreq: imx-bus: Remove imx_bus_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 <[email protected]> Signed-off-by: Chanwoo Choi <[email protected]>
1 parent 18b380e commit 7dbc0d2

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

drivers/devfreq/imx-bus.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,6 @@ static int imx_bus_get_cur_freq(struct device *dev, unsigned long *freq)
4545
return 0;
4646
}
4747

48-
static int imx_bus_get_dev_status(struct device *dev,
49-
struct devfreq_dev_status *stat)
50-
{
51-
struct imx_bus *priv = dev_get_drvdata(dev);
52-
53-
stat->busy_time = 0;
54-
stat->total_time = 0;
55-
stat->current_frequency = clk_get_rate(priv->clk);
56-
57-
return 0;
58-
}
59-
6048
static void imx_bus_exit(struct device *dev)
6149
{
6250
struct imx_bus *priv = dev_get_drvdata(dev);
@@ -129,9 +117,7 @@ static int imx_bus_probe(struct platform_device *pdev)
129117
return ret;
130118
}
131119

132-
priv->profile.polling_ms = 1000;
133120
priv->profile.target = imx_bus_target;
134-
priv->profile.get_dev_status = imx_bus_get_dev_status;
135121
priv->profile.exit = imx_bus_exit;
136122
priv->profile.get_cur_freq = imx_bus_get_cur_freq;
137123
priv->profile.initial_freq = clk_get_rate(priv->clk);

0 commit comments

Comments
 (0)