1. 15 8月, 2013 2 次提交
    • E
      thermal: step_wise: return instance->target by default · ca56caa0
      Eduardo Valentin 提交于
      In case the trend is not changing or when there is no
      request for throttling, it is expected that the instance
      would not change its requested target. This patch improves
      the code implementation to cover for this expected behavior.
      
      With current implementation, the instance will always
      reset to cdev.cur_state, even in not expected cases,
      like those mentioned above.
      
      This patch changes the step_wise governor implementation
      of get_target so that we accomplish:
      (a) - default value will be current instance->target, so
      we do not change the thermal instance target unnecessarily.
      (b) - the code now it is clear about what is the intention.
      There is a clear statement of what are the expected outcomes
      (c) - removal of hardcoded constants, now it is put in use
      the THERMAL_NO_TARGET macro.
      (d) - variable names are also improved so that reader can
      clearly understand the difference between instance cur target,
      next target and cdev cur_state.
      
      Cc: Zhang Rui <rui.zhang@intel.com>
      Cc: Durgadoss R <durgadoss.r@intel.com>
      Cc: linux-pm@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Reported-by: NRuslan Ruslichenko <ruslan.ruslichenko@ti.com>
      Signed-of-by: NEduardo Valentin <eduardo.valentin@ti.com>
      Signed-off-by: NZhang Rui <rui.zhang@intel.com>
      ca56caa0
    • S
      thermal: step_wise: cdev only needs update on a new target state · 178c2490
      Shawn Guo 提交于
      The cooling device only needs update on a new target state.  Since we
      already check old target in thermal_zone_trip_update(), we can do one
      more check to see if it's a new target state.  If not, we can reasonably
      save some uncecesary code execution.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      Acked-by: NEduardo Valentin <eduardo.valentin@ti.com>
      Signed-off-by: NZhang Rui <rui.zhang@intel.com>
      178c2490
  2. 14 4月, 2013 1 次提交
  3. 12 4月, 2013 1 次提交
  4. 04 1月, 2013 2 次提交
  5. 12 12月, 2012 1 次提交
  6. 05 11月, 2012 2 次提交