• Patrick Mochel's avatar
    [power] Add PM info structure to struct device and PM registration functions. · 63dd56a0
    Patrick Mochel authored
    - struct device_pm_info 
      - Defined in include/linux/pm.h.
      - Statically allocated in struct device (->power)
      - Body is empty if CONFIG_PM=n
    
    - deivce_pm_{add,remove}
      - Called from device_{add,del} respectively.
      - Adds device to internal list of power managed objects and creates
        attribute group for device. 
        (Group currently empty, but placeholder directory is created for now)
      - Are defined as empty statc inline's when CONFIG_PM=n.
    63dd56a0
main.c 1.78 KB