search for: dbs_check_cpu

Displaying 4 results from an estimated 4 matches for "dbs_check_cpu".

2007 Oct 29
0
[PATCH][retry 2][cpufreq] Xen support for the ondemand governor in Linux dom0
...************************ sysfs interface ************************/ static ssize_t show_sampling_rate_max(struct cpufreq_policy *policy, char *buf) { @@ -221,18 +222,14 @@ static struct attribute_group dbs_attr_g }; /************************** sysfs end ************************/ - -static void dbs_check_cpu(struct cpu_dbs_info_s *this_dbs_info) -{ - unsigned int idle_ticks, total_ticks; - unsigned int load; +#ifndef CONFIG_XEN +static int dbs_calc_load(struct cpu_dbs_info_s *this_dbs_info) +{ + struct cpufreq_policy *policy; cputime64_t cur_jiffies; - - struct cpufreq_policy *policy; + cputime64_t t...
2007 Oct 23
2
[PATCH][cpufreq] Xen support for the ondemand governor [2/2] (linux)
...mand.c --- a/drivers/cpufreq/cpufreq_ondemand.c Wed Oct 17 09:24:03 2007 +0100 +++ b/drivers/cpufreq/cpufreq_ondemand.c Thu Oct 18 16:08:36 2007 -0500 @@ -221,18 +222,14 @@ static struct attribute_group dbs_attr_g }; /************************** sysfs end ************************/ - -static void dbs_check_cpu(struct cpu_dbs_info_s *this_dbs_info) -{ - unsigned int idle_ticks, total_ticks; - unsigned int load; +#ifndef CONFIG_XEN +static int dbs_calc_load(struct cpu_dbs_info_s *this_dbs_info) +{ + struct cpufreq_policy *policy; cputime64_t cur_jiffies; - - struct cpufreq_policy *policy; + cputime64_t t...
2013 Sep 12
23
More Coverity-reported issues.
Another bundle of issues from Coverity triage. The first one is in x86/mm, and looks scarier than it is. The others are all in xen/drivers and AFAICT are pretty minor. Cheers, Tim.
2011 Oct 20
0
[PATCH 07/12] cpufreq: allocate CPU masks dynamically
...free_cpumask_var(cpufreq_dom->map); xfree(cpufreq_dom); } --- 2011-09-20.orig/xen/drivers/cpufreq/cpufreq_ondemand.c 2011-05-11 09:58:42.000000000 +0200 +++ 2011-09-20/xen/drivers/cpufreq/cpufreq_ondemand.c 2011-10-14 14:58:41.000000000 +0200 @@ -122,7 +122,7 @@ static void dbs_check_cpu(struct cpu_dbs return; /* Get Idle Time */ - for_each_cpu_mask(j, policy->cpus) { + for_each_cpu_mask(j, *policy->cpus) { uint64_t idle_ns, total_idle_ns; uint64_t load, load_freq, freq_avg; struct cpu_dbs_info_s *j_dbs_info; @@ -233,7 +233,7 @...