diff options
author | MyungJoo Ham <myungjoo.ham@samsung.com> | 2011-12-09 02:42:19 -0500 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2012-01-19 20:12:38 -0500 |
commit | 6530b9dea1b7f33eaf79ba625e3a99f2455f3eb1 (patch) | |
tree | 70beddf04779d5941ba6ef851b30e02c7fa0c86c /include/linux/devfreq.h | |
parent | a95e1f5dbca385908aa4087bb98470b0e0ac58d8 (diff) |
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 'include/linux/devfreq.h')
-rw-r--r-- | include/linux/devfreq.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/devfreq.h b/include/linux/devfreq.h index f7eb7d06df7e..5862475d05f8 100644 --- a/include/linux/devfreq.h +++ b/include/linux/devfreq.h | |||
@@ -124,6 +124,8 @@ struct devfreq_governor { | |||
124 | * touch this. | 124 | * touch this. |
125 | * @being_removed a flag to mark that this object is being removed in | 125 | * @being_removed a flag to mark that this object is being removed in |
126 | * order to prevent trying to remove the object multiple times. | 126 | * order to prevent trying to remove the object multiple times. |
127 | * @min_freq Limit minimum frequency requested by user (0: none) | ||
128 | * @max_freq Limit maximum frequency requested by user (0: none) | ||
127 | * | 129 | * |
128 | * This structure stores the devfreq information for a give device. | 130 | * This structure stores the devfreq information for a give device. |
129 | * | 131 | * |
@@ -149,6 +151,9 @@ struct devfreq { | |||
149 | void *data; /* private data for governors */ | 151 | void *data; /* private data for governors */ |
150 | 152 | ||
151 | bool being_removed; | 153 | bool being_removed; |
154 | |||
155 | unsigned long min_freq; | ||
156 | unsigned long max_freq; | ||
152 | }; | 157 | }; |
153 | 158 | ||
154 | #if defined(CONFIG_PM_DEVFREQ) | 159 | #if defined(CONFIG_PM_DEVFREQ) |