• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/cpufreq/

Lines Matching refs:policy

76 static unsigned int dbs_enable;	/* number of CPUs using this policy */
143 struct cpufreq_policy *policy;
148 policy = this_dbs_info->cur_policy;
155 if (this_dbs_info->requested_freq > policy->max
156 || this_dbs_info->requested_freq < policy->min)
434 struct cpufreq_policy *policy;
437 policy = this_dbs_info->cur_policy;
451 for_each_cpu(j, policy->cpus) {
506 if (this_dbs_info->requested_freq == policy->max)
509 freq_target = (dbs_tuners_ins.freq_step * policy->max) / 100;
516 if (this_dbs_info->requested_freq > policy->max)
517 this_dbs_info->requested_freq = policy->max;
519 __cpufreq_driver_target(policy, this_dbs_info->requested_freq,
527 * policy. To be safe, we focus 10 points under the threshold.
530 freq_target = (dbs_tuners_ins.freq_step * policy->max) / 100;
533 if (this_dbs_info->requested_freq < policy->min)
534 this_dbs_info->requested_freq = policy->min;
539 if (policy->cur == policy->min)
542 __cpufreq_driver_target(policy, this_dbs_info->requested_freq,
585 static int cpufreq_governor_dbs(struct cpufreq_policy *policy,
588 unsigned int cpu = policy->cpu;
597 if ((!cpu_online(cpu)) || (!policy->cur))
602 rc = sysfs_create_group(&policy->kobj, &dbs_attr_group_old);
608 for_each_cpu(j, policy->cpus) {
611 j_dbs_info->cur_policy = policy;
621 this_dbs_info->requested_freq = policy->cur;
631 /* policy latency is in nS. Convert it to uS first */
632 latency = policy->cpuinfo.transition_latency / 1000;
670 sysfs_remove_group(&policy->kobj, &dbs_attr_group_old);
692 if (policy->max < this_dbs_info->cur_policy->cur)
695 policy->max, CPUFREQ_RELATION_H);
696 else if (policy->min > this_dbs_info->cur_policy->cur)
699 policy->min, CPUFREQ_RELATION_L);