diff options
Diffstat (limited to 'include/linux/cpufreq.h')
-rw-r--r-- | include/linux/cpufreq.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 5aa95011f7e..4ea39fee99c 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h | |||
@@ -72,6 +72,8 @@ struct cpufreq_real_policy { | |||
72 | 72 | ||
73 | struct cpufreq_policy { | 73 | struct cpufreq_policy { |
74 | cpumask_t cpus; /* affected CPUs */ | 74 | cpumask_t cpus; /* affected CPUs */ |
75 | unsigned int shared_type; /* ANY or ALL affected CPUs | ||
76 | should set cpufreq */ | ||
75 | unsigned int cpu; /* cpu nr of registered CPU */ | 77 | unsigned int cpu; /* cpu nr of registered CPU */ |
76 | struct cpufreq_cpuinfo cpuinfo;/* see above */ | 78 | struct cpufreq_cpuinfo cpuinfo;/* see above */ |
77 | 79 | ||
@@ -98,6 +100,10 @@ struct cpufreq_policy { | |||
98 | #define CPUFREQ_INCOMPATIBLE (1) | 100 | #define CPUFREQ_INCOMPATIBLE (1) |
99 | #define CPUFREQ_NOTIFY (2) | 101 | #define CPUFREQ_NOTIFY (2) |
100 | 102 | ||
103 | #define CPUFREQ_SHARED_TYPE_NONE (0) /* None */ | ||
104 | #define CPUFREQ_SHARED_TYPE_HW (1) /* HW does needed coordination */ | ||
105 | #define CPUFREQ_SHARED_TYPE_ALL (2) /* All dependent CPUs should set freq */ | ||
106 | #define CPUFREQ_SHARED_TYPE_ANY (3) /* Freq can be set from any dependent CPU*/ | ||
101 | 107 | ||
102 | /******************** cpufreq transition notifiers *******************/ | 108 | /******************** cpufreq transition notifiers *******************/ |
103 | 109 | ||
@@ -166,9 +172,6 @@ extern int __cpufreq_driver_target(struct cpufreq_policy *policy, | |||
166 | unsigned int relation); | 172 | unsigned int relation); |
167 | 173 | ||
168 | 174 | ||
169 | /* pass an event to the cpufreq governor */ | ||
170 | int cpufreq_governor(unsigned int cpu, unsigned int event); | ||
171 | |||
172 | int cpufreq_register_governor(struct cpufreq_governor *governor); | 175 | int cpufreq_register_governor(struct cpufreq_governor *governor); |
173 | void cpufreq_unregister_governor(struct cpufreq_governor *governor); | 176 | void cpufreq_unregister_governor(struct cpufreq_governor *governor); |
174 | 177 | ||