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

@ -124,6 +124,8 @@ struct devfreq_governor {
* touch this.
* @being_removed a flag to mark that this object is being removed in
* order to prevent trying to remove the object multiple times.
* @min_freq Limit minimum frequency requested by user (0: none)
* @max_freq Limit maximum frequency requested by user (0: none)
*
* This structure stores the devfreq information for a give device.
*
@ -149,6 +151,9 @@ struct devfreq {
void *data; /* private data for governors */
bool being_removed;
unsigned long min_freq;
unsigned long max_freq;
};
#if defined(CONFIG_PM_DEVFREQ)