Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

power: Add device idle power management support #13382

Merged
merged 3 commits into from
Mar 14, 2019

Commits on Mar 1, 2019

  1. device: Extend device_set_power_state API to support async requests

    The existing device_set_power_state() API works only in synchronous
    mode and this is not desirable for devices(ex: Gyro) which take
    longer time (few 100 mSec) to suspend/resume.
    
    To support async mode, a new callback argument is added to the API.
    The device drivers can asynchronously suspend/resume and call the
    callback function upon completion of the async request.
    
    This commit adds the missing callback parameter to all the drivers
    to make it compliant with the new API.
    
    Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
    Ramakrishna Pallala committed Mar 1, 2019
    Configuration menu
    Copy the full SHA
    c3b0da8 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2019

  1. power: Add device idle power management support

    Add framework for device Idle Power Management(IPM)
    for suspending devices based on device idle. This will
    help in saving power even while system(CPU) is active.
    
    The framework uses device_set_power_state() API set the
    device power state accordingly based on the usage count.
    
    Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
    Ramakrishna Pallala committed Mar 13, 2019
    Configuration menu
    Copy the full SHA
    b4eb42f View commit details
    Browse the repository at this point in the history
  2. samples: power: Add test for device Idle PM

    Added test for Device Idle Power Management to invoke
    device_pm_get/put API's.
    
    Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
    Ramakrishna Pallala committed Mar 13, 2019
    Configuration menu
    Copy the full SHA
    1604ed2 View commit details
    Browse the repository at this point in the history