search for: cpufreq_dom

Displaying 3 results from an estimated 3 matches for "cpufreq_dom".

2008 Oct 29
4
[PATCH] cpufreq.c: shut up compiler about cpufreq_dom
Some versions of GCC are too stupid to figure out that cpufreq_dom is only used if !!domexist and always set in that case, and complain that it may be used uninitialised. (In general it is IMO better to avoid these kind of flag variables; I would prefer structures like for (...) { cpufreq_dom = dom; if (...) goto cpufreq_dom_found; } cpufreq_dom =...
2011 Oct 20
0
[PATCH 07/12] cpufreq: allocate CPU masks dynamically
...affected_cpus, op->u.get_para.cpu_num); --- 2011-09-20.orig/xen/drivers/cpufreq/cpufreq.c 2011-10-13 17:34:59.000000000 +0200 +++ 2011-09-20/xen/drivers/cpufreq/cpufreq.c 2011-10-14 14:58:01.000000000 +0200 @@ -53,7 +53,7 @@ static void cpufreq_cmdline_common_para( struct cpufreq_dom { unsigned int dom; - cpumask_t map; + cpumask_var_t map; struct list_head node; }; static LIST_HEAD_READ_MOSTLY(cpufreq_dom_list_head); @@ -152,11 +152,16 @@ int cpufreq_add_cpu(unsigned int cpu) if (!cpufreq_dom) return -ENOMEM; + if (!zalloc_cpum...
2011 Oct 14
1
[PATCH] cpufreq: error path fixes
This fixes an actual bug (failure to exit from a function after an allocation failure), an inconsistency (not removing the cpufreq_dom list member upon failure), and a latent bug (not clearing the current governor upon governor initialization failure when there was no old one; latent because the only current code path leading to this situation frees the policy upon failure and hence the governor not getting cleared is benign). Si...