mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 06:32:08 +00:00
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:
parent
a95e1f5dbc
commit
6530b9dea1
6 changed files with 101 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue