~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise-security

« back to all changes in this revision

Viewing changes to include/linux/opp.h

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati
  • Date: 2011-12-06 15:56:07 UTC
  • Revision ID: package-import@ubuntu.com-20111206155607-pcf44kv5fmhk564f
Tags: 3.2.0-1401.1
[ Paolo Pisati ]

* Rebased on top of Ubuntu-3.2.0-3.8
* Tilt-tracking @ ef2487af4bb15bdd0689631774b5a5e3a59f74e2
* Delete debian.ti-omap4/control, it shoudln't be tracked
* Fix architecture spelling (s/armel/armhf/)
* [Config] Update configs following 3.2 import
* [Config] Fix compilation: disable CODA and ARCH_OMAP3
* [Config] Fix compilation: disable Ethernet Faraday
* Update series to precise

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
#include <linux/err.h>
18
18
#include <linux/cpufreq.h>
 
19
#include <linux/notifier.h>
19
20
 
20
21
struct opp;
21
22
 
 
23
enum opp_event {
 
24
        OPP_EVENT_ADD, OPP_EVENT_ENABLE, OPP_EVENT_DISABLE,
 
25
};
 
26
 
22
27
#if defined(CONFIG_PM_OPP)
23
28
 
24
29
unsigned long opp_get_voltage(struct opp *opp);
40
45
 
41
46
int opp_disable(struct device *dev, unsigned long freq);
42
47
 
 
48
struct srcu_notifier_head *opp_get_notifier(struct device *dev);
 
49
 
43
50
#else
44
51
static inline unsigned long opp_get_voltage(struct opp *opp)
45
52
{
89
96
{
90
97
        return 0;
91
98
}
92
 
#endif          /* CONFIG_PM */
 
99
 
 
100
static inline struct srcu_notifier_head *opp_get_notifier(struct device *dev)
 
101
{
 
102
        return ERR_PTR(-EINVAL);
 
103
}
 
104
#endif          /* CONFIG_PM_OPP */
93
105
 
94
106
#if defined(CONFIG_CPU_FREQ) && defined(CONFIG_PM_OPP)
95
107
int opp_init_cpufreq_table(struct device *dev,
96
108
                            struct cpufreq_frequency_table **table);
 
109
void opp_free_cpufreq_table(struct device *dev,
 
110
                                struct cpufreq_frequency_table **table);
97
111
#else
98
112
static inline int opp_init_cpufreq_table(struct device *dev,
99
113
                            struct cpufreq_frequency_table **table)
100
114
{
101
115
        return -EINVAL;
102
116
}
 
117
 
 
118
static inline
 
119
void opp_free_cpufreq_table(struct device *dev,
 
120
                                struct cpufreq_frequency_table **table)
 
121
{
 
122
}
103
123
#endif          /* CONFIG_CPU_FREQ */
104
124
 
105
125
#endif          /* __LINUX_OPP_H__ */