/drivers/cpufreq/ |
H A D | mperf.h | 8 unsigned int cpufreq_get_measured_perf(struct cpufreq_policy *policy,
|
H A D | db8500-cpufreq.c | 54 static int db8500_cpufreq_verify_speed(struct cpufreq_policy *policy) argument 56 return cpufreq_frequency_table_verify(policy, freq_table); 59 static int db8500_cpufreq_target(struct cpufreq_policy *policy, argument 67 if (target_freq < policy->cpuinfo.min_freq) 68 target_freq = policy->cpuinfo.min_freq; 69 if (target_freq > policy->cpuinfo.max_freq) 70 target_freq = policy->cpuinfo.max_freq; 74 (policy, freq_table, target_freq, relation, &idx)) { 78 freqs.old = policy->cur; 85 for_each_cpu(freqs.cpu, policy 110 db8500_cpufreq_init(struct cpufreq_policy *policy) argument [all...] |
H A D | cpufreq_userspace.c | 66 * @policy: pointer to policy struct where freq is being set 71 static int cpufreq_set(struct cpufreq_policy *policy, unsigned int freq) argument 75 pr_debug("cpufreq_set for cpu %u, freq %u kHz\n", policy->cpu, freq); 78 if (!per_cpu(cpu_is_managed, policy->cpu)) 81 per_cpu(cpu_set_freq, policy->cpu) = freq; 83 if (freq < per_cpu(cpu_min_freq, policy->cpu)) 84 freq = per_cpu(cpu_min_freq, policy->cpu); 85 if (freq > per_cpu(cpu_max_freq, policy->cpu)) 86 freq = per_cpu(cpu_max_freq, policy 106 show_speed(struct cpufreq_policy *policy, char *buf) argument 111 cpufreq_governor_userspace(struct cpufreq_policy *policy, unsigned int event) argument [all...] |
H A D | cpufreq.c | 53 * - Any routine that wants to read from the policy structure will 55 * - Any routine that will write to the policy structure and/or may take away 56 * the policy altogether (eg. CPU hotplug), will hold this lock in write 105 static int __cpufreq_governor(struct cpufreq_policy *policy, 111 * Two notifier lists: the "policy" list is involved in the 112 * validation process for a new CPU frequency policy; the 242 struct cpufreq_policy *policy; local 250 policy = per_cpu(cpufreq_cpu_data, freqs->cpu); 259 if ((policy) && (policy 307 cpufreq_parse_governor(char *str_governor, unsigned int *policy, struct cpufreq_governor **governor) argument 409 show_cpuinfo_cur_freq(struct cpufreq_policy *policy, char *buf) argument 422 show_scaling_governor(struct cpufreq_policy *policy, char *buf) argument 438 store_scaling_governor(struct cpufreq_policy *policy, const char *buf, size_t count) argument 473 show_scaling_driver(struct cpufreq_policy *policy, char *buf) argument 481 show_scaling_available_governors(struct cpufreq_policy *policy, char *buf) argument 523 show_related_cpus(struct cpufreq_policy *policy, char *buf) argument 533 show_affected_cpus(struct cpufreq_policy *policy, char *buf) argument 538 store_scaling_setspeed(struct cpufreq_policy *policy, const char *buf, size_t count) argument 556 show_scaling_setspeed(struct cpufreq_policy *policy, char *buf) argument 567 show_bios_limit(struct cpufreq_policy *policy, char *buf) argument 617 struct cpufreq_policy *policy = to_policy(kobj); local 642 struct cpufreq_policy *policy = to_policy(kobj); local 666 struct cpufreq_policy *policy = to_policy(kobj); local 688 cpufreq_add_dev_policy(unsigned int cpu, struct cpufreq_policy *policy, struct device *dev) argument 764 cpufreq_add_dev_symlink(unsigned int cpu, struct cpufreq_policy *policy) argument 792 cpufreq_add_dev_interface(unsigned int cpu, struct cpufreq_policy *policy, struct device *dev) argument 881 struct cpufreq_policy *policy; local 1157 struct cpufreq_policy *policy = local 1198 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); local 1218 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); local 1233 struct cpufreq_policy *policy = per_cpu(cpufreq_cpu_data, cpu); local 1263 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); local 1447 __cpufreq_driver_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) argument 1465 cpufreq_driver_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) argument 1489 __cpufreq_driver_getavg(struct cpufreq_policy *policy, unsigned int cpu) argument 1509 __cpufreq_governor(struct cpufreq_policy *policy, unsigned int event) argument 1622 cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu) argument 1644 __cpufreq_set_policy(struct cpufreq_policy *data, struct cpufreq_policy *policy) argument 1738 struct cpufreq_policy policy; local [all...] |
H A D | cpufreq_performance.c | 19 static int cpufreq_governor_performance(struct cpufreq_policy *policy, argument 26 policy->max, event); 27 __cpufreq_driver_target(policy, policy->max, 59 MODULE_DESCRIPTION("CPUfreq policy governor 'performance'");
|
H A D | cpufreq_powersave.c | 18 static int cpufreq_governor_powersave(struct cpufreq_policy *policy, argument 25 policy->min, event); 26 __cpufreq_driver_target(policy, policy->min, 57 MODULE_DESCRIPTION("CPUfreq policy governor 'powersave'");
|
H A D | omap-cpufreq.c | 60 static int omap_verify_speed(struct cpufreq_policy *policy) argument 64 return cpufreq_frequency_table_verify(policy, freq_table); 78 static int omap_target(struct cpufreq_policy *policy, argument 90 policy->cpu); 94 ret = cpufreq_frequency_table_target(policy, freq_table, target_freq, 98 __func__, policy->cpu, target_freq, ret); 104 policy->cpu, target_freq); 108 freqs.old = omap_getspeed(policy->cpu); 109 freqs.cpu = policy->cpu; 111 if (freqs.old == freqs.new && policy 206 omap_cpu_init(struct cpufreq_policy *policy) argument 264 omap_cpu_exit(struct cpufreq_policy *policy) argument [all...] |
H A D | longrun.c | 30 * longrun_get_policy - get the current LongRun policy 31 * @policy: struct cpufreq_policy where current policy is written into 33 * Reads the current LongRun policy by access to MSR_TMTA_LONGRUN_FLAGS 36 static void __cpuinit longrun_get_policy(struct cpufreq_policy *policy) argument 43 policy->policy = CPUFREQ_POLICY_PERFORMANCE; 45 policy->policy = CPUFREQ_POLICY_POWERSAVE; 54 policy 72 longrun_set_policy(struct cpufreq_policy *policy) argument 126 longrun_verify_policy(struct cpufreq_policy *policy) argument 259 longrun_cpu_init(struct cpufreq_policy *policy) argument [all...] |
H A D | freq_table.c | 21 int cpufreq_frequency_table_cpuinfo(struct cpufreq_policy *policy, argument 43 policy->min = policy->cpuinfo.min_freq = min_freq; 44 policy->max = policy->cpuinfo.max_freq = max_freq; 46 if (policy->min == ~0) 54 int cpufreq_frequency_table_verify(struct cpufreq_policy *policy, argument 61 pr_debug("request for verification of policy (%u - %u kHz) for cpu %u\n", 62 policy->min, policy 94 cpufreq_frequency_table_target(struct cpufreq_policy *policy, struct cpufreq_frequency_table *table, unsigned int target_freq, unsigned int relation, unsigned int *index) argument 178 show_available_freqs(struct cpufreq_policy *policy, char *buf) argument [all...] |
H A D | gx-suspmod.c | 140 /* For the default policy, we want at least some processing power 338 static int cpufreq_gx_verify(struct cpufreq_policy *policy) argument 343 if (!stock_freq || !policy) 346 policy->cpu = 0; 347 cpufreq_verify_within_limits(policy, (stock_freq / max_duration), 351 * within policy->min and policy->max. If it is not, policy->max 353 * policy->min may not be decreased, though. This way we guarantee a 356 tmp_freq = gx_validate_speed(policy 378 cpufreq_gx_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) argument 405 cpufreq_gx_cpu_init(struct cpufreq_policy *policy) argument [all...] |
H A D | sc520_freq.c | 81 static int sc520_freq_verify(struct cpufreq_policy *policy) argument 83 return cpufreq_frequency_table_verify(policy, &sc520_freq_table[0]); 86 static int sc520_freq_target(struct cpufreq_policy *policy, argument 92 if (cpufreq_frequency_table_target(policy, sc520_freq_table, 106 static int sc520_freq_cpu_init(struct cpufreq_policy *policy) argument 116 /* cpuinfo and default policy values */ 117 policy->cpuinfo.transition_latency = 1000000; /* 1ms */ 118 policy->cur = sc520_freq_get_cpu_frequency(0); 120 result = cpufreq_frequency_table_cpuinfo(policy, sc520_freq_table); 124 cpufreq_frequency_table_get_attr(sc520_freq_table, policy 130 sc520_freq_cpu_exit(struct cpufreq_policy *policy) argument [all...] |
H A D | cpufreq-nforce2.c | 244 * nforce2_target - set a new CPUFreq policy 245 * @policy: new policy 250 * Sets a new CPUFreq policy. 252 static int nforce2_target(struct cpufreq_policy *policy, argument 259 if ((target_freq > policy->max) || (target_freq < policy->min)) 264 freqs.old = nforce2_get(policy->cpu); 295 * nforce2_verify - verifies a new CPUFreq policy 296 * @policy 298 nforce2_verify(struct cpufreq_policy *policy) argument 313 nforce2_cpu_init(struct cpufreq_policy *policy) argument 373 nforce2_cpu_exit(struct cpufreq_policy *policy) argument [all...] |
H A D | exynos-cpufreq.c | 34 int exynos_verify_speed(struct cpufreq_policy *policy) argument 36 return cpufreq_frequency_table_verify(policy, 45 static int exynos_target(struct cpufreq_policy *policy, argument 58 freqs.old = policy->cur; 65 if (cpufreq_frequency_table_target(policy, freq_table, 71 if (cpufreq_frequency_table_target(policy, freq_table, 78 freqs.cpu = policy->cpu; 125 static int exynos_cpufreq_suspend(struct cpufreq_policy *policy) argument 130 static int exynos_cpufreq_resume(struct cpufreq_policy *policy) argument 154 struct cpufreq_policy *policy local 207 exynos_cpufreq_cpu_init(struct cpufreq_policy *policy) argument [all...] |
H A D | p4-clockmod.c | 109 static int cpufreq_p4_target(struct cpufreq_policy *policy, argument 117 if (cpufreq_frequency_table_target(policy, &p4clockmod_table[0], 121 freqs.old = cpufreq_p4_get(policy->cpu); 128 for_each_cpu(i, policy->cpus) { 137 for_each_cpu(i, policy->cpus) 141 for_each_cpu(i, policy->cpus) { 150 static int cpufreq_p4_verify(struct cpufreq_policy *policy) argument 152 return cpufreq_frequency_table_verify(policy, &p4clockmod_table[0]); 201 static int cpufreq_p4_cpu_init(struct cpufreq_policy *policy) argument 203 struct cpuinfo_x86 *c = &cpu_data(policy 253 cpufreq_p4_cpu_exit(struct cpufreq_policy *policy) argument [all...] |
H A D | speedstep-ich.c | 252 * speedstep_target - set a new CPUFreq policy 253 * @policy: new policy 258 * Sets a new CPUFreq policy. 260 static int speedstep_target(struct cpufreq_policy *policy, argument 268 if (cpufreq_frequency_table_target(policy, &speedstep_freqs[0], 272 policy_cpu = cpumask_any_and(policy->cpus, cpu_online_mask); 275 freqs.cpu = policy->cpu; 283 for_each_cpu(i, policy->cpus) { 291 for_each_cpu(i, policy 307 speedstep_verify(struct cpufreq_policy *policy) argument 313 struct cpufreq_policy *policy; member in struct:get_freqs 329 speedstep_cpu_init(struct cpufreq_policy *policy) argument 370 speedstep_cpu_exit(struct cpufreq_policy *policy) argument [all...] |
H A D | powernow-k6.c | 108 * powernow_k6_verify - verifies a new CPUfreq policy 109 * @policy: new policy 114 static int powernow_k6_verify(struct cpufreq_policy *policy) argument 116 return cpufreq_frequency_table_verify(policy, &clock_ratio[0]); 121 * powernow_k6_setpolicy - sets a new CPUFreq policy 122 * @policy: new policy 127 * sets a new CPUFreq policy 129 static int powernow_k6_target(struct cpufreq_policy *policy, argument 145 powernow_k6_cpu_init(struct cpufreq_policy *policy) argument 180 powernow_k6_cpu_exit(struct cpufreq_policy *policy) argument [all...] |
H A D | speedstep-centrino.c | 232 static int centrino_cpu_init_table(struct cpufreq_policy *policy) argument 234 struct cpuinfo_x86 *cpu = &cpu_data(policy->cpu); 259 per_cpu(centrino_model, policy->cpu) = model; 268 static inline int centrino_cpu_init_table(struct cpufreq_policy *policy) argument 343 static int centrino_cpu_init(struct cpufreq_policy *policy) argument 345 struct cpuinfo_x86 *cpu = &cpu_data(policy->cpu); 359 if (policy->cpu != 0) 367 per_cpu(centrino_cpu, policy->cpu) = &cpu_ids[i]; 369 if (!per_cpu(centrino_cpu, policy->cpu)) { 376 if (centrino_cpu_init_table(policy)) { 416 centrino_cpu_exit(struct cpufreq_policy *policy) argument 437 centrino_verify(struct cpufreq_policy *policy) argument 452 centrino_target(struct cpufreq_policy *policy, unsigned int target_freq, unsigned int relation) argument [all...] |
H A D | cpufreq_stats.c | 70 static ssize_t show_total_trans(struct cpufreq_policy *policy, char *buf) argument 72 struct cpufreq_stats *stat = per_cpu(cpufreq_stats_table, policy->cpu); 79 static ssize_t show_time_in_state(struct cpufreq_policy *policy, char *buf) argument 83 struct cpufreq_stats *stat = per_cpu(cpufreq_stats_table, policy->cpu); 96 static ssize_t show_trans_table(struct cpufreq_policy *policy, char *buf) argument 101 struct cpufreq_stats *stat = per_cpu(cpufreq_stats_table, policy->cpu); 181 * cpufreq_remove_dev) so that policy is still valid. 185 struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); local 186 if (policy && policy 192 cpufreq_stats_create_table(struct cpufreq_policy *policy, struct cpufreq_frequency_table *table) argument 269 struct cpufreq_policy *policy = data; local 321 struct cpufreq_policy *policy; local [all...] |
H A D | elanfreq.c | 170 * @policy: the policy to validate 176 static int elanfreq_verify(struct cpufreq_policy *policy) argument 178 return cpufreq_frequency_table_verify(policy, &elanfreq_table[0]); 181 static int elanfreq_target(struct cpufreq_policy *policy, argument 187 if (cpufreq_frequency_table_target(policy, &elanfreq_table[0], 201 static int elanfreq_cpu_init(struct cpufreq_policy *policy) argument 222 /* cpuinfo and default policy values */ 223 policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL; 224 policy 235 elanfreq_cpu_exit(struct cpufreq_policy *policy) argument [all...] |
H A D | acpi-cpufreq.c | 281 static int acpi_cpufreq_target(struct cpufreq_policy *policy, argument 284 struct acpi_cpufreq_data *data = per_cpu(acfreq_data, policy->cpu); 293 pr_debug("acpi_cpufreq_target %d (%d)\n", target_freq, policy->cpu); 301 result = cpufreq_frequency_table_target(policy, 341 if (policy->shared_type != CPUFREQ_SHARED_TYPE_ANY) 342 cmd.mask = policy->cpus; 344 cmd.mask = cpumask_of(policy->cpu); 348 for_each_cpu(i, policy->cpus) { 358 policy->cpu); 364 for_each_cpu(i, policy 374 acpi_cpufreq_verify(struct cpufreq_policy *policy) argument 506 acpi_cpufreq_cpu_init(struct cpufreq_policy *policy) argument 690 acpi_cpufreq_cpu_exit(struct cpufreq_policy *policy) argument 708 acpi_cpufreq_resume(struct cpufreq_policy *policy) argument [all...] |
H A D | cpufreq_conservative.c | 76 static unsigned int dbs_enable; /* number of CPUs using this policy */ 141 struct cpufreq_policy *policy; local 146 policy = this_dbs_info->cur_policy; 153 if (this_dbs_info->requested_freq > policy->max 154 || this_dbs_info->requested_freq < policy->min) 329 struct cpufreq_policy *policy; local 332 policy = this_dbs_info->cur_policy; 346 for_each_cpu(j, policy->cpus) { 401 if (this_dbs_info->requested_freq == policy->max) 404 freq_target = (dbs_tuners_ins.freq_step * policy 479 cpufreq_governor_dbs(struct cpufreq_policy *policy, unsigned int event) argument [all...] |
H A D | cpufreq_ondemand.c | 60 static int cpufreq_governor_dbs(struct cpufreq_policy *policy, 99 static unsigned int dbs_enable; /* number of CPUs using this policy */ 171 static unsigned int powersave_bias_target(struct cpufreq_policy *policy, argument 180 policy->cpu); 188 cpufreq_frequency_table_target(policy, dbs_info->freq_table, freq_next, 196 cpufreq_frequency_table_target(policy, dbs_info->freq_table, freq_avg, 200 cpufreq_frequency_table_target(policy, dbs_info->freq_table, freq_avg, 281 struct cpufreq_policy *policy; local 285 policy = cpufreq_cpu_get(cpu); 286 if (!policy) 467 struct cpufreq_policy *policy; local 679 cpufreq_governor_dbs(struct cpufreq_policy *policy, unsigned int event) argument [all...] |
H A D | speedstep-smi.c | 236 * speedstep_target - set a new CPUFreq policy 237 * @policy: new policy 241 * Sets a new CPUFreq policy/freq. 243 static int speedstep_target(struct cpufreq_policy *policy, argument 249 if (cpufreq_frequency_table_target(policy, &speedstep_freqs[0], 269 * speedstep_verify - verifies a new CPUFreq policy 270 * @policy: new policy 275 static int speedstep_verify(struct cpufreq_policy *policy) argument 281 speedstep_cpu_init(struct cpufreq_policy *policy) argument 342 speedstep_cpu_exit(struct cpufreq_policy *policy) argument 356 speedstep_resume(struct cpufreq_policy *policy) argument [all...] |
H A D | mperf.c | 33 unsigned int cpufreq_get_measured_perf(struct cpufreq_policy *policy, argument 46 retval = (policy->cpuinfo.max_freq * ratio) >> APERFMPERF_SHIFT;
|
/drivers/net/wireless/bcmdhd/ |
H A D | dhd_linux_sched.c | 32 int setScheduler(struct task_struct *p, int policy, struct sched_param *param) argument 36 rc = sched_setscheduler(p, policy, param);
|