Home
last modified time | relevance | path

Searched refs:devfreq (Results 1 – 11 of 11) sorted by relevance

/drivers/devfreq/
Ddevfreq.c52 static struct devfreq *find_device_devfreq(struct device *dev) in find_device_devfreq()
54 struct devfreq *tmp_devfreq; in find_device_devfreq()
76 static int devfreq_get_freq_level(struct devfreq *devfreq, unsigned long freq) in devfreq_get_freq_level() argument
80 for (lev = 0; lev < devfreq->profile->max_state; lev++) in devfreq_get_freq_level()
81 if (freq == devfreq->profile->freq_table[lev]) in devfreq_get_freq_level()
92 static int devfreq_update_status(struct devfreq *devfreq, unsigned long freq) in devfreq_update_status() argument
97 lev = devfreq_get_freq_level(devfreq, freq); in devfreq_update_status()
102 devfreq->time_in_state[lev] += in devfreq_update_status()
103 cur_time - devfreq->last_stat_updated; in devfreq_update_status()
104 if (freq != devfreq->previous_freq) { in devfreq_update_status()
[all …]
Dgovernor_userspace.c25 static int devfreq_userspace_func(struct devfreq *df, unsigned long *freq) in devfreq_userspace_func()
48 struct devfreq *devfreq = to_devfreq(dev); in store_freq() local
54 mutex_lock(&devfreq->lock); in store_freq()
55 data = devfreq->data; in store_freq()
60 err = update_devfreq(devfreq); in store_freq()
63 mutex_unlock(&devfreq->lock); in store_freq()
70 struct devfreq *devfreq = to_devfreq(dev); in show_freq() local
74 mutex_lock(&devfreq->lock); in show_freq()
75 data = devfreq->data; in show_freq()
81 mutex_unlock(&devfreq->lock); in show_freq()
[all …]
Dgovernor.h19 #define to_devfreq(DEV) container_of((DEV), struct devfreq, dev)
29 extern int update_devfreq(struct devfreq *devfreq);
31 extern void devfreq_monitor_start(struct devfreq *devfreq);
32 extern void devfreq_monitor_stop(struct devfreq *devfreq);
33 extern void devfreq_monitor_suspend(struct devfreq *devfreq);
34 extern void devfreq_monitor_resume(struct devfreq *devfreq);
35 extern void devfreq_interval_update(struct devfreq *devfreq,
Dgovernor_simpleondemand.c21 static int devfreq_simple_ondemand_func(struct devfreq *df, in devfreq_simple_ondemand_func()
93 static int devfreq_simple_ondemand_handler(struct devfreq *devfreq, in devfreq_simple_ondemand_handler() argument
98 devfreq_monitor_start(devfreq); in devfreq_simple_ondemand_handler()
102 devfreq_monitor_stop(devfreq); in devfreq_simple_ondemand_handler()
106 devfreq_interval_update(devfreq, (unsigned int *)data); in devfreq_simple_ondemand_handler()
110 devfreq_monitor_suspend(devfreq); in devfreq_simple_ondemand_handler()
114 devfreq_monitor_resume(devfreq); in devfreq_simple_ondemand_handler()
Dgovernor_powersave.c16 static int devfreq_powersave_func(struct devfreq *df, in devfreq_powersave_func()
27 static int devfreq_powersave_handler(struct devfreq *devfreq, in devfreq_powersave_handler() argument
33 mutex_lock(&devfreq->lock); in devfreq_powersave_handler()
34 ret = update_devfreq(devfreq); in devfreq_powersave_handler()
35 mutex_unlock(&devfreq->lock); in devfreq_powersave_handler()
Dgovernor_performance.c16 static int devfreq_performance_func(struct devfreq *df, in devfreq_performance_func()
30 static int devfreq_performance_handler(struct devfreq *devfreq, in devfreq_performance_handler() argument
36 mutex_lock(&devfreq->lock); in devfreq_performance_handler()
37 ret = update_devfreq(devfreq); in devfreq_performance_handler()
38 mutex_unlock(&devfreq->lock); in devfreq_performance_handler()
DKconfig5 devfreq, a generic DVFS framework can be registered for a device
6 in order to let the governor provided to devfreq choose an
11 notification to "nb", a notifier block, of devfreq.
15 determined by the single device's state, an instance of devfreq
18 to a device by 1-to-1. The device registering devfreq takes the
21 given to devfreq.
23 When OPP is used with the devfreq device, it is recommended to
24 register devfreq's nb to the OPP's notifier head. If OPP is
25 used with the devfreq device, you may use OPP helper
26 functions defined in devfreq.h.
Dexynos4_bus.c89 struct devfreq *devfreq; member
770 devfreq_unregister_opp_notifier(dev, data->devfreq); in exynos4_bus_exit()
1082 data->devfreq = devfreq_add_device(dev, &exynos4_devfreq_profile, in exynos4_busfreq_probe()
1084 if (IS_ERR(data->devfreq)) in exynos4_busfreq_probe()
1085 return PTR_ERR(data->devfreq); in exynos4_busfreq_probe()
1087 devfreq_register_opp_notifier(dev, data->devfreq); in exynos4_busfreq_probe()
1092 devfreq_remove_device(data->devfreq); in exynos4_busfreq_probe()
1104 devfreq_remove_device(data->devfreq); in exynos4_busfreq_remove()
DMakefile1 obj-$(CONFIG_PM_DEVFREQ) += devfreq.o
/drivers/
DMakefile149 obj-$(CONFIG_PM_DEVFREQ) += devfreq/
DKconfig151 source "drivers/devfreq/Kconfig"