summaryrefslogtreecommitdiff
path: root/include/linux/devfreq.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2012-01-25 03:02:08 +0400
committerRafael J. Wysocki <rjw@sisk.pl>2012-01-25 03:02:08 +0400
commite4c9d8efe6bdc844071d68960dfa2003c5cf6449 (patch)
tree3c3018f75fbfde7a8cc5247e0097b5046f8fa153 /include/linux/devfreq.h
parentd2346963bfcbb9a8ee783ca3c3b3bdd7448ec9d5 (diff)
parent6530b9dea1b7f33eaf79ba625e3a99f2455f3eb1 (diff)
downloadlinux-e4c9d8efe6bdc844071d68960dfa2003c5cf6449.tar.xz
Merge branch 'devfreq-for-next' of git://git.infradead.org/users/kmpark/linux-samsung into pm-devfreq
* 'devfreq-for-next' of git://git.infradead.org/users/kmpark/linux-samsung: PM / devfreq: add min/max_freq limit requested by users. PM / devfreq: fixed syntax errors. devfreq: Remove MODULE_ALIAS for exynos4 busfreq driver devfreq: exynos4_bus: Use dev_get_drvdata at appropriate places
Diffstat (limited to 'include/linux/devfreq.h')
-rw-r--r--include/linux/devfreq.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/devfreq.h b/include/linux/devfreq.h
index 98ce8124b1cc..5862475d05f8 100644
--- a/include/linux/devfreq.h
+++ b/include/linux/devfreq.h
@@ -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)
@@ -200,12 +205,12 @@ struct devfreq_simple_ondemand_data {
static struct devfreq *devfreq_add_device(struct device *dev,
struct devfreq_dev_profile *profile,
struct devfreq_governor *governor,
- void *data);
+ void *data)
{
return NULL;
}
-static int devfreq_remove_device(struct devfreq *devfreq);
+static int devfreq_remove_device(struct devfreq *devfreq)
{
return 0;
}