Displaying 2 results from an estimated 2 matches for "total_ticks".
2007 Oct 29
0
[PATCH][retry 2][cpufreq] Xen support for the ondemand governor in Linux dom0
...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 total_ticks, idle_ticks;
 	unsigned int j;
-
-	if (!this_dbs_info->enable)
-...
2007 Oct 23
2
[PATCH][cpufreq] Xen support for the ondemand governor [2/2] (linux)
...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 total_ticks, idle_ticks;
 	unsigned int j;
-
-	if (!this_dbs_info->enable)
-...