1. 02 Oct, 2018 1 commit
  2. 26 Oct, 2017 1 commit
    • Chanwoo Choi's avatar
      PM / devfreq: Define the constant governor name · aa7c352f
      Chanwoo Choi authored
      Prior to that, the devfreq device uses the governor name when adding
      the itself. In order to prevent the mistake used the wrong governor name,
      this patch defines the governor name as a constant and then uses them
      instead of using the string directly.
      Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
      Signed-off-by: default avatarMyungJoo Ham <myungjoo.ham@samsung.com>
      Cc: Kukjin Kim <kgene@kernel.org>
      Cc: Krzysztof Kozlowski <krzk@kernel.org>
      Cc: linux-samsung-soc@vger.kernel.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-kernel@vger.kernel.org
      aa7c352f
  3. 20 Nov, 2012 3 commits
    • Nishanth Menon's avatar
      PM / devfreq: governors: add GPL module license and allow module build · eff607fd
      Nishanth Menon authored
      Add GPL module license and remove the static build
      restrictions for building governors. This allows governors now
      to be loaded on a need basis and reloaded independently of kernel
      build
      
      Cc: Rajagopal Venkat <rajagopal.venkat@linaro.org>
      Cc: MyungJoo Ham <myungjoo.ham@samsung.com>
      Cc: Kyungmin Park <kyungmin.park@samsung.com>
      Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
      Cc: Kevin Hilman <khilman@ti.com>
      Cc: linux-pm@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      Acked-by: default avatarMyungJoo Ham <myungjoo.ham@samsung.com>
      Signed-off-by: default avatarMyungJoo Ham <myungjoo.ham@samsung.com>
      eff607fd
    • Nishanth Menon's avatar
      PM / devfreq: map devfreq drivers to governor using name · 1b5c1be2
      Nishanth Menon authored
      Allow devfreq drivers to register a preferred governor name
      and when the devfreq governor loads itself at a later point
      required drivers are managed appropriately, at the time of
      unload of a devfreq governor, stop managing those drivers
      as well.
      
      Since the governor structures do not need to be exposed
      anymore, remove the definitions and make them static
      
      NOTE: devfreq_list_lock is now used to protect governor
      start and stop - as this allows us to protect governors and
      devfreq with the proper dependencies as needed.
      
      As part of this change, change the registration of exynos
      bus driver to request for ondemand using the governor name.
      
      Cc: Rajagopal Venkat <rajagopal.venkat@linaro.org>
      Cc: MyungJoo Ham <myungjoo.ham@samsung.com>
      Cc: Kyungmin Park <kyungmin.park@samsung.com>
      Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
      Cc: Kevin Hilman <khilman@ti.com>
      Cc: linux-pm@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      [Merge conflict resolved by MyungJoo Ham]
      Signed-off-by: default avatarMyungJoo Ham <myungjoo.ham@samsung.com>
      1b5c1be2
    • Nishanth Menon's avatar
      PM / devfreq: register governors with devfreq framework · 83116e66
      Nishanth Menon authored
      With the new registration functions, governors can be now
      registered with devfreq framework.
      
      NOTE: generates 'discards qualifiers from pointer target type'
      build warnings, which the next patche in this series fixes
      
      Cc: Rajagopal Venkat <rajagopal.venkat@linaro.org>
      Cc: MyungJoo Ham <myungjoo.ham@samsung.com>
      Cc: Kyungmin Park <kyungmin.park@samsung.com>
      Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
      Cc: Kevin Hilman <khilman@ti.com>
      Cc: linux-pm@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      Acked-by: default avatarMyungJoo Ham <myungjoo.ham@samsung.com>
      Signed-off-by: default avatarMyungJoo Ham <myungjoo.ham@samsung.com>
      83116e66
  4. 14 Nov, 2012 1 commit
    • Rajagopal Venkat's avatar
      PM / devfreq: Core updates to support devices which can idle · 7e6fdd4b
      Rajagopal Venkat authored
      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: default avatarRajagopal Venkat <rajagopal.venkat@linaro.org>
      Acked-by: default avatarMyungJoo Ham <myungjoo.ham@samsung.com>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      7e6fdd4b
  5. 01 May, 2012 1 commit
  6. 20 Jan, 2012 1 commit
  7. 01 Oct, 2011 1 commit
    • MyungJoo Ham's avatar
      PM / devfreq: Add basic governors · ce26c5bb
      MyungJoo Ham authored
      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: default avatarMyungJoo Ham <myungjoo.ham@samsung.com>
      Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
      Reviewed-by: default avatarMike Turquette <mturquette@ti.com>
      Acked-by: default avatarKevin Hilman <khilman@ti.com>
      Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
      ce26c5bb