1. 05 11月, 2012 3 次提交
  2. 24 9月, 2012 8 次提交
  3. 31 7月, 2012 1 次提交
    • A
      thermal: Constify 'type' argument for the registration routine · 4b1bf587
      Anton Vorontsov 提交于
      thermal_zone_device_register() does not modify 'type' argument, so it is
      safe to declare it as const. Otherwise, if we pass a const string, we are
      getting the ugly warning:
      
      CC drivers/power/power_supply_core.o
      drivers/power/power_supply_core.c: In function 'psy_register_thermal':
      drivers/power/power_supply_core.c:204:6: warning: passing argument 1 of 'thermal_zone_device_register' discards 'const' qualifier from pointer target type [enabled by default]
      include/linux/thermal.h:140:29: note: expected 'char *' but argument is of type 'const char *'
      Signed-off-by: NAnton Vorontsov <anton.vorontsov@linaro.org>
      Acked-by: NJean Delvare <khali@linux-fr.org>
      4b1bf587
  4. 25 7月, 2012 2 次提交
  5. 23 1月, 2012 1 次提交
  6. 03 8月, 2011 1 次提交
    • J
      thermal: make THERMAL_HWMON implementation fully internal · 31f5396a
      Jean Delvare 提交于
      THERMAL_HWMON is implemented inside the thermal_sys driver and has no
      effect on drivers implementing thermal zones, so they shouldn't see
      anything related to it in <linux/thermal.h>.  Making the THERMAL_HWMON
      implementation fully internal has two advantages beyond the cleaner
      design:
      
      * This avoids rebuilding all thermal drivers if the THERMAL_HWMON
        implementation changes, or if CONFIG_THERMAL_HWMON gets enabled or
        disabled.
      
      * This avoids breaking the thermal kABI in these cases too, which should
        make distributions happy.
      
      The only drawback I can see is slightly higher memory fragmentation, as
      the number of kzalloc() calls will increase by one per thermal zone.  But
      I doubt it will be a problem in practice, as I've never seen a system with
      more than two thermal zones.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Rene Herman <rene.herman@gmail.com>
      Acked-by: NGuenter Roeck <guenter.roeck@ericsson.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      31f5396a
  7. 01 3月, 2011 1 次提交
    • R
      ACPI: Fix build for CONFIG_NET unset · af06216a
      Rafael J. Wysocki 提交于
      Several ACPI drivers fail to build if CONFIG_NET is unset, because
      they refer to things depending on CONFIG_THERMAL that in turn depends
      on CONFIG_NET.  However, CONFIG_THERMAL doesn't really need to depend
      on CONFIG_NET, because the only part of it requiring CONFIG_NET is
      the netlink interface in thermal_sys.c.
      
      Put the netlink interface in thermal_sys.c under #ifdef CONFIG_NET
      and remove the dependency of CONFIG_THERMAL on CONFIG_NET from
      drivers/thermal/Kconfig.
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Acked-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Len Brown <lenb@kernel.org>
      Cc: Stephen Rothwell <sfr@canb.auug.org.au>
      Cc: Luming Yu <luming.yu@intel.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      af06216a
  8. 12 1月, 2011 1 次提交
  9. 01 12月, 2010 1 次提交
  10. 28 3月, 2009 1 次提交
    • M
      thermal: support forcing support for passive cooling · 03a971a2
      Matthew Garrett 提交于
      Due to poor thermal design or Linux driving hardware outside its thermal
      envelope, some systems will reach critical temperature and shut down
      under high load. This patch adds support for forcing a polling-based
      passive trip point if the firmware doesn't provide one. The assumption
      is made that the processor is the most practical means to reduce the
      dynamic heat generation, so hitting the passive thermal limit will cause
      the CPU to be throttled until the temperature stabalises around the
      defined value.
      
      UI is provided via a "passive" sysfs entry in the thermal zone
      directory. It accepts a decimal value in millidegrees celsius, or "0" to
      disable the functionality. Default behaviour is for this functionality
      to be disabled.
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      03a971a2
  11. 21 2月, 2009 1 次提交
  12. 20 2月, 2009 1 次提交
  13. 26 6月, 2008 1 次提交
  14. 29 4月, 2008 3 次提交
  15. 16 4月, 2008 1 次提交
  16. 09 2月, 2008 1 次提交
  17. 02 2月, 2008 2 次提交