50K sampling for conservative Gov
/drivers/cpufreq/cpufreq_conservative.c
blob:c7b081b839ffe1fb37df117fb2f0395467383ec4 -> blob:1142fdf83c4aef25679ee894784cd1ade9a30921
--- drivers/cpufreq/cpufreq_conservative.c
+++ drivers/cpufreq/cpufreq_conservative.c
@@ -29,8 +29,8 @@
* It helps to keep variable names smaller, simpler
*/
-#define DEF_FREQUENCY_UP_THRESHOLD (80)
-#define DEF_FREQUENCY_DOWN_THRESHOLD (20)
+#define DEF_FREQUENCY_UP_THRESHOLD (60) // 80
+#define DEF_FREQUENCY_DOWN_THRESHOLD (35)
/*
* The polling frequency of this governor depends on the capability of
@@ -42,7 +42,7 @@
* this governor will not work.
* All times here are in uS.
*/
-#define MIN_SAMPLING_RATE_RATIO (2)
+#define MIN_SAMPLING_RATE_RATIO (1) // 2
static unsigned int min_sampling_rate;
@@ -95,7 +95,7 @@ static struct dbs_tuners {
.down_threshold = DEF_FREQUENCY_DOWN_THRESHOLD,
.sampling_down_factor = DEF_SAMPLING_DOWN_FACTOR,
.ignore_nice = 0,
- .freq_step = 5,
+ .freq_step = 15, // 5
};
static inline cputime64_t get_cpu_idle_time_jiffy(unsigned int cpu,
@@ -569,7 +569,7 @@ static int cpufreq_governor_dbs(struct c
* governor, thus we are bound to jiffes/HZ
*/
min_sampling_rate =
- MIN_SAMPLING_RATE_RATIO * jiffies_to_usecs(10);
+ MIN_SAMPLING_RATE_RATIO * jiffies_to_usecs(5); // 10
/* Bring kernel and HW constraints together */
min_sampling_rate = max(min_sampling_rate,
MIN_LATENCY_MULTIPLIER * latency);
@@ -671,3 +671,4 @@ fs_initcall(cpufreq_gov_dbs_init);
module_init(cpufreq_gov_dbs_init);
#endif
module_exit(cpufreq_gov_dbs_exit);
+