Displaying 2 results from an estimated 2 matches for "new_policy".
Did you mean:
need_policy
2008 Oct 29
4
[PATCH] cpufreq.c: shut up compiler about cpufreq_dom
...s/cpufreq/cpufreq.c Wed Oct 29 16:41:14 2008 +0000
@@ -80,7 +80,7 @@ int cpufreq_add_cpu(unsigned int cpu)
unsigned int dom, domexist = 0;
unsigned int j;
struct list_head *pos;
- struct cpufreq_dom *cpufreq_dom;
+ struct cpufreq_dom *cpufreq_dom = 0;
struct cpufreq_policy new_policy;
struct cpufreq_policy *policy;
struct processor_performance *perf = &processor_pminfo[cpu]->perf;
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
2011 Oct 20
0
[PATCH 07/12] cpufreq: allocate CPU masks dynamically
...atistic_init(cpu);
if (ret)
goto err1;
- if (hw_all ||
- (cpus_weight(cpufreq_dom->map) == perf->domain_info.num_processors)) {
+ if (hw_all || (cpumask_weight(cpufreq_dom->map) ==
+ perf->domain_info.num_processors)) {
memcpy(&new_policy, policy, sizeof(struct cpufreq_policy));
policy->governor = NULL;
@@ -238,16 +250,18 @@ err2:
cpufreq_statistic_exit(cpu);
err1:
per_cpu(cpufreq_cpu_policy, cpu) = NULL;
- cpu_clear(cpu, policy->cpus);
- cpu_clear(cpu, cpufreq_dom->map);
+ cpumask_clear_cpu(c...