1. 12 Aug, 2003 1 commit
    • Patrick Mochel's avatar
      [power] Add hooks for runtime device power control. · 86ccb795
      Patrick Mochel authored
      dpm_runtime_{suspend,resume} control the power state of a single device 
      while the system is running. 
      
      dpm_runtime_suspend() will save state of the device, then attempt to power
      it down. This happens with interrupts enabled, so if the device does not 
      support that, the device's state is restored, and we continue on our merry
      way.
      
      dpm_runtime_resume() powers the device back on, then restores state of the
      device.
      
      dpm_set_power_state() simply notifies the core of the power state the
      device is in. Drivers can use this, since they are the only ones that can
      really tell.
      86ccb795
  2. 10 Aug, 2003 1 commit
    • Patrick Mochel's avatar
      [power] Add PM usage counting · 98247e0a
      Patrick Mochel authored
      - Add ->pm_users and ->pm_parent fields to struct dev_pm_info. 
      - Add function device_pm_set_parent()
      
      The default power parent for a device is the device's physical parent, but
      a driver may change it to represent a tranversal power dependency. 
      
      Though it's not incorporated into the suspend/resume sequences yet, the 
      core will respect the power tree, rather than the physical/electrical one.
      
      Also added is a power usage count for devices, which indicates how many 
      devices are dependent on that one for power (how many children it has in 
      the power tree). The core will use this count to determine whether or not
      a device can be put into a low power state or not. 
      98247e0a
  3. 09 Aug, 2003 16 commits
  4. 08 Aug, 2003 22 commits