1. 12 4月, 2013 1 次提交
  2. 30 1月, 2012 1 次提交
  3. 22 12月, 2011 1 次提交
    • R
      PM: Drop generic_subsys_pm_ops · 90363ddf
      Rafael J. Wysocki 提交于
      Since the PM core is now going to execute driver callbacks directly
      if the corresponding subsystem callbacks are not present,
      forward-only subsystem callbacks (i.e. such that only execute the
      corresponding driver callbacks) are not necessary any more.  Thus
      it is possible to remove generic_subsys_pm_ops, because the only
      callback in there that is not forward-only, .runtime_idle, is not
      really used by the only user of generic_subsys_pm_ops, which is
      vio_bus_type.
      
      However, the generic callback routines themselves cannot be removed
      from generic_ops.c, because they are used individually by a number
      of subsystems.
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      90363ddf
  4. 18 12月, 2011 2 次提交
    • R
      PM / Sleep: Merge internal functions in generic_ops.c · 1eac8111
      Rafael J. Wysocki 提交于
      After the change that removed the code related to runtime PM
      from __pm_generic_call() and __pm_generic_resume() these two
      functions need not be separate any more, so merge them.
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      1eac8111
    • R
      PM / Sleep: Simplify generic system suspend callbacks · 8ca6d9bc
      Rafael J. Wysocki 提交于
      The pm_runtime_suspended() check in __pm_generic_call() doesn't
      really help and may cause problems to happen, because in some cases
      the system suspend callbacks need to be called even if the given
      device has been suspended by runtime PM.  For example, if the device
      generally supports remote wakeup and is not enabled to wake up
      the system from sleep, it should be prevented from generating wakeup
      signals during system suspend and that has to be done by the
      suspend callbacks that the pm_runtime_suspended() check prevents from
      being executed.
      
      Similarly, it may not be a good idea to unconditionally change
      the runtime PM status of the device to 'active' in
      __pm_generic_resume(), because the driver may want to leave the
      device in the 'suspended' state, depending on what happened to it
      before the system suspend and whether or not it is enabled to
      wake up the system.
      
      For the above reasons, remove the pm_runtime_suspended()
      check from __pm_generic_call() and remove the code changing the
      device's runtime PM status from __pm_generic_resume().
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      8ca6d9bc
  5. 01 11月, 2011 1 次提交
  6. 02 7月, 2011 1 次提交
  7. 18 5月, 2011 1 次提交
  8. 24 12月, 2010 2 次提交
  9. 17 10月, 2010 1 次提交
  10. 07 3月, 2010 1 次提交
    • R
      PM: Provide generic subsystem-level callbacks · d690b2cd
      Rafael J. Wysocki 提交于
      There are subsystems whose power management callbacks only need to
      invoke the callbacks provided by device drivers.  Still, their system
      sleep PM callbacks should play well with the runtime PM callbacks,
      so that devices suspended at run time can be left in that state for
      a system sleep transition.
      
      Provide a set of generic PM callbacks for such subsystems and
      define convenience macros for populating dev_pm_ops structures.
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      d690b2cd