diff options
author | Nishanth Menon <nm@ti.com> | 2012-10-29 16:01:43 -0400 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2012-11-20 04:46:12 -0500 |
commit | 3aa173b8db200bb96354481acc0a5b9e123119fe (patch) | |
tree | f24511e8b86dd4c482f8551317363ed07fb327a6 /drivers/devfreq/governor.h | |
parent | 2df5021fa9738905e8b1ab92fa0cd685430f54da (diff) |
PM / devfreq: provide hooks for governors to be registered
Add devfreq_add_governor and devfreq_remove_governor which
can be invoked by governors to register with devfreq.
This sets up the stage to dynamically switch governors and
allow governors to be dynamically loaded as well.
Cc: Rajagopal Venkat <rajagopal.venkat@linaro.org>
Cc: MyungJoo Ham <myungjoo.ham@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Kevin Hilman <khilman@ti.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Nishanth Menon <nm@ti.com>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'drivers/devfreq/governor.h')
-rw-r--r-- | drivers/devfreq/governor.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/devfreq/governor.h b/drivers/devfreq/governor.h index 26432ac0a398..fad7d6321978 100644 --- a/drivers/devfreq/governor.h +++ b/drivers/devfreq/governor.h | |||
@@ -34,4 +34,8 @@ extern void devfreq_monitor_suspend(struct devfreq *devfreq); | |||
34 | extern void devfreq_monitor_resume(struct devfreq *devfreq); | 34 | extern void devfreq_monitor_resume(struct devfreq *devfreq); |
35 | extern void devfreq_interval_update(struct devfreq *devfreq, | 35 | extern void devfreq_interval_update(struct devfreq *devfreq, |
36 | unsigned int *delay); | 36 | unsigned int *delay); |
37 | |||
38 | extern int devfreq_add_governor(struct devfreq_governor *governor); | ||
39 | extern int devfreq_remove_governor(struct devfreq_governor *governor); | ||
40 | |||
37 | #endif /* _GOVERNOR_H */ | 41 | #endif /* _GOVERNOR_H */ |