diff options
author | Nagananda.Chumbalkar@hp.com <Nagananda.Chumbalkar@hp.com> | 2009-12-21 23:40:52 +0100 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2010-01-13 16:55:16 +0100 |
commit | 1dbf58881f307e21a3df4b990a5bea401360d02e (patch) | |
tree | a79f9d4373c88a5451569f56d6b99952e982e832 /Documentation/cpu-freq | |
parent | [CPUFREQ] Fix use after free of struct powernow_k8_data (diff) | |
download | linux-1dbf58881f307e21a3df4b990a5bea401360d02e.tar.xz linux-1dbf58881f307e21a3df4b990a5bea401360d02e.zip |
[CPUFREQ] Fix ondemand to not request targets outside policy limits
Dominik said:
target_freq cannot be below policy->min or above policy->max.
If it were, the whole cpufreq subsystem is broken.
But (answer):
I think the "ondemand" governor can ask for a target frequency that is
below policy->min.
...
A patch such as below may be needed to sanitize the target frequency
requested by "ondemand". The "conservative" governor already has this check:
Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Dave Jones <davej@redhat.com>
# diff -bur x/drivers/cpufreq/cpufreq_ondemand.c.orig y/drivers/cpufreq/cpufreq_ondemand.c
Diffstat (limited to 'Documentation/cpu-freq')
0 files changed, 0 insertions, 0 deletions