summaryrefslogtreecommitdiffstats
path: root/drivers/devfreq/governor_powersave.c
diff options
context:
space:
mode:
authorMyungJoo Ham <myungjoo.ham@samsung.com>2011-12-09 16:42:19 +0900
committerMyungJoo Ham <myungjoo.ham@samsung.com>2012-01-20 10:12:38 +0900
commit6530b9dea1b7f33eaf79ba625e3a99f2455f3eb1 (patch)
tree70beddf04779d5941ba6ef851b30e02c7fa0c86c /drivers/devfreq/governor_powersave.c
parenta95e1f5dbca385908aa4087bb98470b0e0ac58d8 (diff)
downloadblackbird-op-linux-6530b9dea1b7f33eaf79ba625e3a99f2455f3eb1.tar.gz
blackbird-op-linux-6530b9dea1b7f33eaf79ba625e3a99f2455f3eb1.zip
PM / devfreq: add min/max_freq limit requested by users.
The frequency requested to devfreq device driver from devfreq governors is restricted by min_freq and max_freq input. Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/devfreq/governor_powersave.c')
-rw-r--r--drivers/devfreq/governor_powersave.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/devfreq/governor_powersave.c b/drivers/devfreq/governor_powersave.c
index 2483a85a266f..d742d4a82d6a 100644
--- a/drivers/devfreq/governor_powersave.c
+++ b/drivers/devfreq/governor_powersave.c
@@ -18,7 +18,7 @@ static int devfreq_powersave_func(struct devfreq *df,
* target callback should be able to get ceiling value as
* said in devfreq.h
*/
- *freq = 0;
+ *freq = df->min_freq;
return 0;
}
OpenPOWER on IntegriCloud