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 145 up_threshold: defines what the average CPU usage between the samplings 146 146 of 'sampling_rate' needs to be for the kernel to make a decision on 147 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 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 150 decide that the CPU frequency needs to be increased. 151 151 152 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 1356 1357 1357 kfree(data->powernow_table); 1358 1358 kfree(data); 1359 + per_cpu(powernow_data, pol->cpu) = NULL; 1359 1360 1360 1361 return 0; 1361 1362 } ··· 1376 1375 int err; 1377 1376 1378 1377 if (!data) 1379 - return -EINVAL; 1378 + return 0; 1380 1379 1381 1380 smp_call_function_single(cpu, query_values_on_cpu, &err, true); 1382 1381 if (err)
+3
drivers/cpufreq/cpufreq_ondemand.c
··· 554 554 (dbs_tuners_ins.up_threshold - 555 555 dbs_tuners_ins.down_differential); 556 556 557 + if (freq_next < policy->min) 558 + freq_next = policy->min; 559 + 557 560 if (!dbs_tuners_ins.powersave_bias) { 558 561 __cpufreq_driver_target(policy, freq_next, 559 562 CPUFREQ_RELATION_L);