search for: tmp_idle_tick

Displaying 2 results from an estimated 2 matches for "tmp_idle_tick".

Did you mean: tmp_idle_ticks
2007 Oct 23
2
[PATCH][cpufreq] Xen support for the ondemand governor [2/2] (linux)
...his_dbs_info->prev_cpu_wall = cur_jiffies; if (!total_ticks) - return; + return 200; /* * Every sampling_rate, we check, if current idle time is less * than 20% (default), then we try to increase frequency @@ -270,6 +267,67 @@ static void dbs_check_cpu(struct cpu_dbs idle_ticks = tmp_idle_ticks; } load = (100 * (total_ticks - idle_ticks)) / total_ticks; + return load; +} +#else + +#include <xen/interface/platform.h> +static int dbs_calc_load(struct cpu_dbs_info_s *this_dbs_info) +{ + int load = 0; + struct xen_platform_op op; + uint64_t idletime[NR_CPUS]; + uint64...
2007 Oct 29
0
[PATCH][retry 2][cpufreq] Xen support for the ondemand governor in Linux dom0
...his_dbs_info->prev_cpu_wall = cur_jiffies; if (!total_ticks) - return; + return 200; /* * Every sampling_rate, we check, if current idle time is less * than 20% (default), then we try to increase frequency @@ -270,6 +267,70 @@ static void dbs_check_cpu(struct cpu_dbs idle_ticks = tmp_idle_ticks; } load = (100 * (total_ticks - idle_ticks)) / total_ticks; + return load; +} +#else + +#include <xen/interface/platform.h> +static int dbs_calc_load(struct cpu_dbs_info_s *this_dbs_info) +{ + int load = 0; + struct xen_platform_op op; + uint64_t idletime[NR_CPUS]; + struct cpufreq_polic...