aboutsummaryrefslogtreecommitdiff
path: root/lib/dynamic_debug.c
diff options
context:
space:
mode:
authorEduardo Valentin <[email protected]>2013-11-13 14:11:09 -0400
committerZhang Rui <[email protected]>2014-01-02 11:54:14 +0800
commit1c9573a40c1d34494419f32560f28c763c504d79 (patch)
treeab8727f4e9452628a579ecea3dc560ebd1110d1c /lib/dynamic_debug.c
parent06475b556cb4863cf1dcace9b2d21dac1fc74daf (diff)
thermal: fix cpu_cooling max_level behavior
As per Documentation/thermal/sysfs-api.txt, max_level is an index, not a counter. Thus, in case a CPU has 3 valid frequencies, max_level is expected to be 2, for instance. The current code makes max_level == number of valid frequencies, which is bogus. This patch fix the cpu_cooling device by ranging max_level properly. Reported-by: Carlos Hernandez <[email protected]> Signed-off-by: Eduardo Valentin <[email protected]> Signed-off-by: Zhang Rui <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions