1. 07 1月, 2016 4 次提交
  2. 17 11月, 2015 1 次提交
  3. 03 8月, 2015 1 次提交
    • S
      thermal: consistently use int for temperatures · 17e8351a
      Sascha Hauer 提交于
      The thermal code uses int, long and unsigned long for temperatures
      in different places.
      
      Using an unsigned type limits the thermal framework to positive
      temperatures without need. Also several drivers currently will report
      temperatures near UINT_MAX for temperatures below 0°C. This will probably
      immediately shut the machine down due to overtemperature if started below
      0°C.
      
      'long' is 64bit on several architectures. This is not needed since INT_MAX °mC
      is above the melting point of all known materials.
      
      Consistently use a plain 'int' for temperatures throughout the thermal code and
      the drivers. This only changes the places in the drivers where the temperature
      is passed around as pointer, when drivers internally use another type this is
      not changed.
      Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
      Acked-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      Reviewed-by: NJean Delvare <jdelvare@suse.de>
      Reviewed-by: NLukasz Majewski <l.majewski@samsung.com>
      Reviewed-by: NDarren Hart <dvhart@linux.intel.com>
      Reviewed-by: NHeiko Stuebner <heiko@sntech.de>
      Reviewed-by: NPeter Feuerer <peter@piie.net>
      Cc: Punit Agrawal <punit.agrawal@arm.com>
      Cc: Zhang Rui <rui.zhang@intel.com>
      Cc: Eduardo Valentin <edubezval@gmail.com>
      Cc: linux-pm@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Cc: Jean Delvare <jdelvare@suse.de>
      Cc: Peter Feuerer <peter@piie.net>
      Cc: Heiko Stuebner <heiko@sntech.de>
      Cc: Lukasz Majewski <l.majewski@samsung.com>
      Cc: Stephen Warren <swarren@wwwdotorg.org>
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Cc: linux-acpi@vger.kernel.org
      Cc: platform-driver-x86@vger.kernel.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-omap@vger.kernel.org
      Cc: linux-samsung-soc@vger.kernel.org
      Cc: Guenter Roeck <linux@roeck-us.net>
      Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
      Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
      Cc: Darren Hart <dvhart@infradead.org>
      Cc: lm-sensors@lm-sensors.org
      Signed-off-by: NZhang Rui <rui.zhang@intel.com>
      17e8351a
  4. 25 2月, 2015 2 次提交
  5. 13 1月, 2015 1 次提交
  6. 07 1月, 2015 2 次提交
  7. 15 5月, 2014 2 次提交
  8. 08 4月, 2014 2 次提交
    • P
      thermal: rcar-thermal: update thermal zone only when temperature changes · 9477165e
      Patrick Titiano 提交于
      Avoid updating the thermal zone in case an IRQ was triggered but the
      temperature didn't effectively change.
      Note this is not a driver issue.
      Below is a captured debug trace illustrating the purpose of this patch:
      out of 8 thermal zone updates, only 2 are actually necessary.
      
      [   41.120000] rcar_thermal_work(): cctemp=25000
      [   41.120000] rcar_thermal_work(): nctemp=30000
      [   41.120000] rcar_thermal_work(): temp is now 30000C, update thermal zone
      [   58.990000] rcar_thermal_work(): cctemp=30000
      [   58.990000] rcar_thermal_work(): nctemp=30000
      [   58.990000] rcar_thermal_work(): same temp, do not update thermal zone
      [   59.290000] rcar_thermal_work(): cctemp=30000
      [   59.290000] rcar_thermal_work(): nctemp=30000
      [   59.290000] rcar_thermal_work(): same temp, do not update thermal zone
      [   59.590000] rcar_thermal_work(): cctemp=30000
      [   59.590000] rcar_thermal_work(): nctemp=30000
      [   59.590000] rcar_thermal_work(): same temp, do not update thermal zone
      [   59.890000] rcar_thermal_work(): cctemp=30000
      [   59.890000] rcar_thermal_work(): nctemp=30000
      [   59.890000] rcar_thermal_work(): same temp, do not update thermal zone
      [   60.190000] rcar_thermal_work(): cctemp=30000
      [   60.190000] rcar_thermal_work(): nctemp=30000
      [   60.190000] rcar_thermal_work(): same temp, do not update thermal zone
      [   60.490000] rcar_thermal_work(): cctemp=30000
      [   60.490000] rcar_thermal_work(): nctemp=30000
      [   60.490000] rcar_thermal_work(): same temp, do not update thermal zone
      [   60.790000] rcar_thermal_work(): cctemp=30000
      [   60.790000] rcar_thermal_work(): nctemp=35000
      [   60.790000] rcar_thermal_work(): temp is now 35000C, update thermal zone
      
      I suspect this may be due to sensor sampling accuracy / fluctuation,
      but no formal proof.
      Signed-off-by: NPatrick Titiano <ptitiano@baylibre.com>
      Acked-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: NZhang Rui <rui.zhang@intel.com>
      9477165e
    • P
      thermal: rcar-thermal: fix same mask applied twice · 206c0cba
      Patrick Titiano 提交于
      Mask is already applied preceding the if statement.
      Remove the second mask.
      Signed-off-by: NPatrick Titiano <ptitiano@baylibre.com>
      Acked-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: NZhang Rui <rui.zhang@intel.com>
      206c0cba
  9. 08 1月, 2014 1 次提交
  10. 28 5月, 2013 1 次提交
  11. 20 5月, 2013 1 次提交
  12. 06 5月, 2013 1 次提交
  13. 02 4月, 2013 2 次提交
  14. 11 3月, 2013 3 次提交
  15. 22 2月, 2013 1 次提交
  16. 08 2月, 2013 1 次提交
  17. 06 2月, 2013 7 次提交
  18. 04 1月, 2013 1 次提交
  19. 26 11月, 2012 2 次提交
  20. 07 11月, 2012 1 次提交
  21. 05 11月, 2012 1 次提交
  22. 03 11月, 2012 1 次提交
    • D
      thermal: solve compilation errors in rcar_thermal · 608f62b9
      Devendra Naga 提交于
      following were the errors reported
      
      drivers/thermal/rcar_thermal.c: In function ‘rcar_thermal_probe’:
      drivers/thermal/rcar_thermal.c:214:10: warning: passing argument 3 of ‘thermal_zone_device_register’ makes integer from pointer without a cast [enabled by default]
      include/linux/thermal.h:166:29: note: expected ‘int’ but argument is of type ‘struct rcar_thermal_priv *’
      drivers/thermal/rcar_thermal.c:214:10: error: too few arguments to function ‘thermal_zone_device_register’
      include/linux/thermal.h:166:29: note: declared here
      make[1]: *** [drivers/thermal/rcar_thermal.o] Error 1
      make: *** [drivers/thermal/rcar_thermal.o] Error 2
      
      with gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
      Signed-off-by: NDevendra Naga <develkernel412222@gmail.com>
      Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: NZhang Rui <rui.zhang@intel.com>
      608f62b9
  23. 24 9月, 2012 1 次提交