Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq

* 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq:
[CPUFREQ] Fix ondemand to not request targets outside policy limits
[CPUFREQ] Fix use after free of struct powernow_k8_data
[CPUFREQ] fix default value for ondemand governor

+7 -3
+2 -2
Documentation/cpu-freq/governors.txt
··· 145 up_threshold: defines what the average CPU usage between the samplings 146 of 'sampling_rate' needs to be for the kernel to make a decision on 147 whether it should increase the frequency. For example when it is set 148 - to its default value of '80' it means that between the checking 149 - intervals the CPU needs to be on average more than 80% in use to then 150 decide that the CPU frequency needs to be increased. 151 152 ignore_nice_load: this parameter takes a value of '0' or '1'. When
··· 145 up_threshold: defines what the average CPU usage between the samplings 146 of 'sampling_rate' needs to be for the kernel to make a decision on 147 whether it should increase the frequency. For example when it is set 148 + to its default value of '95' it means that between the checking 149 + intervals the CPU needs to be on average more than 95% in use to then 150 decide that the CPU frequency needs to be increased. 151 152 ignore_nice_load: this parameter takes a value of '0' or '1'. When
+2 -1
arch/x86/kernel/cpu/cpufreq/powernow-k8.c
··· 1356 1357 kfree(data->powernow_table); 1358 kfree(data); 1359 1360 return 0; 1361 } ··· 1376 int err; 1377 1378 if (!data) 1379 - return -EINVAL; 1380 1381 smp_call_function_single(cpu, query_values_on_cpu, &err, true); 1382 if (err)
··· 1356 1357 kfree(data->powernow_table); 1358 kfree(data); 1359 + per_cpu(powernow_data, pol->cpu) = NULL; 1360 1361 return 0; 1362 } ··· 1375 int err; 1376 1377 if (!data) 1378 + return 0; 1379 1380 smp_call_function_single(cpu, query_values_on_cpu, &err, true); 1381 if (err)
+3
drivers/cpufreq/cpufreq_ondemand.c
··· 554 (dbs_tuners_ins.up_threshold - 555 dbs_tuners_ins.down_differential); 556 557 if (!dbs_tuners_ins.powersave_bias) { 558 __cpufreq_driver_target(policy, freq_next, 559 CPUFREQ_RELATION_L);
··· 554 (dbs_tuners_ins.up_threshold - 555 dbs_tuners_ins.down_differential); 556 557 + if (freq_next < policy->min) 558 + freq_next = policy->min; 559 + 560 if (!dbs_tuners_ins.powersave_bias) { 561 __cpufreq_driver_target(policy, freq_next, 562 CPUFREQ_RELATION_L);