1. 20 11月, 2012 1 次提交
  2. 15 11月, 2012 1 次提交
    • R
      PM / devfreq: Core updates to support devices which can idle · 7e6fdd4b
      Rajagopal Venkat 提交于
      Prepare devfreq core framework to support devices which
      can idle. When device idleness is detected perhaps through
      runtime-pm, need some mechanism to suspend devfreq load
      monitoring and resume back when device is online. Present
      code continues monitoring unless device is removed from
      devfreq core.
      
      This patch introduces following design changes,
      
       - use per device work instead of global work to monitor device
         load. This enables suspend/resume of device devfreq and
         reduces monitoring code complexity.
       - decouple delayed work based load monitoring logic from core
         by introducing helpers functions to be used by governors. This
         provides flexibility for governors either to use delayed work
         based monitoring functions or to implement their own mechanism.
       - devfreq core interacts with governors via events to perform
         specific actions. These events include start/stop devfreq.
         This sets ground for adding suspend/resume events.
      
      The devfreq apis are not modified and are kept intact.
      Signed-off-by: NRajagopal Venkat <rajagopal.venkat@linaro.org>
      Acked-by: NMyungJoo Ham <myungjoo.ham@samsung.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      7e6fdd4b
  3. 02 5月, 2012 1 次提交
  4. 20 1月, 2012 1 次提交
  5. 02 10月, 2011 1 次提交
    • M
      PM / devfreq: Add basic governors · ce26c5bb
      MyungJoo Ham 提交于
      Four cpufreq-like governors are provided as examples.
      
      powersave: use the lowest frequency possible. The user (device) should
      set the polling_ms as 0 because polling is useless for this governor.
      
      performance: use the highest freqeuncy possible. The user (device)
      should set the polling_ms as 0 because polling is useless for this
      governor.
      
      userspace: use the user specified frequency stored at
      devfreq.user_set_freq. With sysfs support in the following patch, a user
      may set the value with the sysfs interface.
      
      simple_ondemand: simplified version of cpufreq's ondemand governor.
      
      When a user updates OPP entries (enable/disable/add), OPP framework
      automatically notifies devfreq to update operating frequency
      accordingly. Thus, devfreq users (device drivers) do not need to update
      devfreq manually with OPP entry updates or set polling_ms for powersave
      , performance, userspace, or any other "static" governors.
      
      Note that these are given only as basic examples for governors and any
      devices with devfreq may implement their own governors with the drivers
      and use them.
      Signed-off-by: NMyungJoo Ham <myungjoo.ham@samsung.com>
      Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
      Reviewed-by: NMike Turquette <mturquette@ti.com>
      Acked-by: NKevin Hilman <khilman@ti.com>
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      ce26c5bb