Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • include
  • linux
  • devfreq.h
Find file BlameHistoryPermalink
  • Leonard Crestez's avatar
    PM / devfreq: Use PM QoS for sysfs min/max_freq · 27dbc542
    Leonard Crestez authored Dec 05, 2019
    
    
    Switch the handling of min_freq and max_freq from sysfs to use the
    dev_pm_qos_request interface.
    
    Since PM QoS handles frequencies as kHz this change reduces the
    precision of min_freq and max_freq. This shouldn't introduce problems
    because frequencies which are not an integer number of kHz are likely
    not an integer number of Hz either.
    
    Try to ensure compatibility by rounding min values down and rounding
    max values up.
    
    Signed-off-by: default avatarLeonard Crestez <leonard.crestez@nxp.com>
    Acked-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
    Reviewed-by: default avatarMatthias Kaehlcke <mka@chromium.org>
    Tested-by: default avatarMatthias Kaehlcke <mka@chromium.org>
    [cw00.choi: Return -EAGAIN instead of -EINVAL if dev_pm_qos is inactive]
    Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
    27dbc542
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7