@@ -450,9 +450,17 @@ static ssize_t store_min_perf_pct(struct kobject *a, struct attribute *b,
return -EINVAL;
limits.min_sysfs_pct = clamp_t(int, input, 0 , 100);
+ printk("%s[%d] min_sysfs_pct = %d\n", __FUNCTION__, __LINE__,
+ limits.min_sysfs_pct);
limits.min_perf_pct = max(limits.min_policy_pct, limits.min_sysfs_pct);
+ printk("%s[%d] min_perf_pct = %d\n", __FUNCTION__, __LINE__,
+ limits.min_perf_pct);
limits.min_perf_pct = min(limits.max_policy_pct, limits.min_perf_pct);
+ printk("%s[%d] min_perf_pct = %d\n", __FUNCTION__, __LINE__,
+ limits.min_perf_pct);
limits.min_perf_pct = min(limits.max_perf_pct, limits.min_perf_pct);
+ printk("%s[%d] min_perf_pct = %d\n", __FUNCTION__, __LINE__,
+ limits.min_perf_pct);
limits.min_perf = div_fp(int_tofp(limits.min_perf_pct), int_tofp(100));
if (hwp_active)
@@ -990,6 +998,8 @@ static int intel_pstate_set_policy(struct cpufreq_policy *policy)
policy->max >= policy->cpuinfo.max_freq) {
limits.min_policy_pct = 100;
limits.min_perf_pct = 100;
+ printk("%s[%d] min_perf_pct = %d\n", __FUNCTION__, __LINE__,
+ limits.min_perf_pct);
limits.min_perf = int_tofp(1);
limits.max_policy_pct = 100;
limits.max_perf_pct = 100;
@@ -1007,10 +1017,16 @@ static int intel_pstate_set_policy(struct cpufreq_policy *policy)
limits.min_perf_pct = max(limits.min_policy_pct, limits.min_sysfs_pct);
limits.min_perf_pct = min(limits.max_policy_pct, limits.min_perf_pct);
limits.max_perf_pct = min(limits.max_policy_pct, limits.max_sysfs_pct);
+ printk("%s[%d] min_perf_pct = %d\n", __FUNCTION__, __LINE__,
+ limits.min_perf_pct);
limits.max_perf_pct = max(limits.min_policy_pct, limits.max_perf_pct);
+ printk("%s[%d] min_perf_pct = %d\n", __FUNCTION__, __LINE__,
+ limits.min_perf_pct);
/* Make sure min_perf_pct <= max_perf_pct */
limits.min_perf_pct = min(limits.max_perf_pct, limits.min_perf_pct);
+ printk("%s[%d] min_perf_pct = %d\n", __FUNCTION__, __LINE__,
+ limits.min_perf_pct);
limits.min_perf = div_fp(int_tofp(limits.min_perf_pct), int_tofp(100));
limits.max_perf = div_fp(int_tofp(limits.max_perf_pct), int_tofp(100));