• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/cpufreq/

Lines Matching refs:policy

72 static unsigned int dbs_enable;	/* number of CPUs using this policy */
115 static unsigned int powersave_bias_target(struct cpufreq_policy *policy,
123 struct cpu_dbs_info_s *dbs_info = &per_cpu(cpu_dbs_info, policy->cpu);
131 cpufreq_frequency_table_target(policy, dbs_info->freq_table, freq_next,
139 cpufreq_frequency_table_target(policy, dbs_info->freq_table, freq_avg,
143 cpufreq_frequency_table_target(policy, dbs_info->freq_table, freq_avg,
175 static ssize_t show_sampling_rate_max(struct cpufreq_policy *policy, char *buf)
180 static ssize_t show_sampling_rate_min(struct cpufreq_policy *policy, char *buf)
244 static ssize_t store_ignore_nice_load(struct cpufreq_policy *policy,
331 struct cpufreq_policy *policy;
338 policy = this_dbs_info->cur_policy;
359 for_each_cpu_mask(j, policy->cpus) {
379 if (policy->cur == policy->max)
382 __cpufreq_driver_target(policy, policy->max,
385 int freq = powersave_bias_target(policy, policy->max,
387 __cpufreq_driver_target(policy, freq,
395 if (policy->cur == policy->min)
401 * policy. To be safe, we focus 10 points under the threshold.
406 freq_cur = __cpufreq_driver_getavg(policy);
408 freq_cur = policy->cur;
414 __cpufreq_driver_target(policy, freq_next,
417 int freq = powersave_bias_target(policy, freq_next,
419 __cpufreq_driver_target(policy, freq,
484 static int cpufreq_governor_dbs(struct cpufreq_policy *policy,
487 unsigned int cpu = policy->cpu;
496 if ((!cpu_online(cpu)) || (!policy->cur))
499 if (policy->cpuinfo.transition_latency >
511 rc = sysfs_create_group(&policy->kobj, &dbs_attr_group);
518 for_each_cpu_mask(j, policy->cpus) {
521 j_dbs_info->cur_policy = policy;
533 /* policy latency is in nS. Convert it to uS first */
534 latency = policy->cpuinfo.transition_latency / 1000;
554 sysfs_remove_group(&policy->kobj, &dbs_attr_group);
562 if (policy->max < this_dbs_info->cur_policy->cur)
564 policy->max,
566 else if (policy->min > this_dbs_info->cur_policy->cur)
568 policy->min,