]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: fix off-by-1 error in trip point trigger condition
authorVladimir Zajac <eightgraph@gmail.com>
Wed, 6 May 2009 17:34:21 +0000 (19:34 +0200)
committerLen Brown <len.brown@intel.com>
Thu, 14 May 2009 17:40:53 +0000 (13:40 -0400)
commit9f092d52784fbb072c8420b353940867897f2887
tree8ba7f57293a72a48fc4dfae69356961a3d9b6571
parent334dcf3687580e3aab1ff315da763471db5f3932
thermal: fix off-by-1 error in trip point trigger condition

This patch fixes a regression caused by commit
c50f6a946049239ef2f6609fcd8e180f7410ee7d
"ACPI: move thermal trip handling to generic thermal layer"
which accidentally changed trip point trigger condition to
  temp > trip_temp

This patch changes the trigger condition back to
  temp >= trip_temp

Signed-off-by: Vladimir Zajac <eightgraph@gmail.com>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Acked-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/thermal/thermal_sys.c