X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=drivers%2Fcpufreq%2Fcpufreq_governor.h;h=cc401d147e727615c8255a951a08065ae954fb23;hb=589e18a973bd6bb8abd2c6d4d8a1dcf5ae1dff61;hp=bfb9ae14142c85a82341bf63afa594ed0fdaa278;hpb=6ceb339109adf88a27b6f596c9f99a095f762659;p=cascardo%2Flinux.git diff --git a/drivers/cpufreq/cpufreq_governor.h b/drivers/cpufreq/cpufreq_governor.h index bfb9ae14142c..cc401d147e72 100644 --- a/drivers/cpufreq/cpufreq_governor.h +++ b/drivers/cpufreq/cpufreq_governor.h @@ -134,6 +134,13 @@ struct cpu_dbs_common_info { u64 prev_cpu_idle; u64 prev_cpu_wall; u64 prev_cpu_nice; + /* + * Used to keep track of load in the previous interval. However, when + * explicitly set to zero, it is used as a flag to ensure that we copy + * the previous load to the current interval only once, upon the first + * wake-up from idle. + */ + unsigned int prev_load; struct cpufreq_policy *cur_policy; struct delayed_work work; /*