diff options
author | Lukasz Majewski <l.majewski@samsung.com> | 2014-02-26 14:07:17 +0100 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-18 11:47:08 +0900 |
commit | 7d4444f635676ead27faad737b6c5e53eb1f68fe (patch) | |
tree | a29a10a04a97cf26fd1541eaf3e6d47ad8f35088 /drivers/cpufreq/cpufreq_governor.h | |
parent | 3fdc649e72108dbe6c7b3c07adc5de04fecea825 (diff) | |
download | linux-3.10-7d4444f635676ead27faad737b6c5e53eb1f68fe.tar.gz linux-3.10-7d4444f635676ead27faad737b6c5e53eb1f68fe.tar.bz2 linux-3.10-7d4444f635676ead27faad737b6c5e53eb1f68fe.zip |
cpufreq:LAB:ondemand: REMOVE from LAB governor code duplicated at ondemand
LAB is very similar to ondemand governor in its structure.
Both use the same code for:
- governor init and exit
- demand based switching timer code
- governor specific ops
In this way the LAB can be stacked on top of ondemand governor and hence it
is possible to reuse its logic when needed.
Change-Id: I78e0da90bb2f07677fe6f8d451139107994f5a6f
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq_governor.h')
-rw-r--r-- | drivers/cpufreq/cpufreq_governor.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/cpufreq/cpufreq_governor.h b/drivers/cpufreq/cpufreq_governor.h index 3886a1852f7..2387f38ac90 100644 --- a/drivers/cpufreq/cpufreq_governor.h +++ b/drivers/cpufreq/cpufreq_governor.h @@ -284,4 +284,12 @@ void od_register_powersave_bias_handler(unsigned int (*f) (struct cpufreq_policy *, unsigned int, unsigned int), unsigned int powersave_bias); void od_unregister_powersave_bias_handler(void); + +/* COMMON CODE FOR DEMAND BASED SWITCHING */ +void od_dbs_timer(struct work_struct *work); +int od_init(struct dbs_data *dbs_data); +void od_exit(struct dbs_data *dbs_data); + +extern struct od_ops od_ops; + #endif /* _CPUFREQ_GOVERNOR_H */ |