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>
This commit is contained in:
MyungJoo Ham
2011-12-09 16:42:19 +09:00
parent a95e1f5dbc
commit 6530b9dea1
6 changed files with 101 additions and 8 deletions

View File

@@ -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;
}