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

pm: policy: latency: Add support for immediate action #81856

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Nov 25, 2024

  1. pm: policy: latency: Add support for immediate action

    Remove API for subscription to the latency change. This API was added
    to support executing immediate action on latency change but
    implementation was calling subscriber callbacks with interrupts locked
    which is not desirable. In general, it is non-trivial task to
    manage multiple requests and perform asynchronous action for the
    top request. On-off manager implements that for binary case.
    
    Additionally, API was missing a notifiction to the requestor when
    immediate action is completed and it is required for the used to
    know when requested latency requirement is fulfilled.
    
    Proposed API is adding a possible notification for request and
    update and adds option to add a manager for controlling immediate
    action. Added notifications make sense only if immediate action
    is used. Immediate action implements support for binary case
    where there is a single action that is performed when latency
    is below a given threshold. In future it can be extended to
    support gradual manager.
    
    Signed-off-by: Krzysztof Chruściński <[email protected]>
    nordic-krch committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    b995c2c View commit details
    Browse the repository at this point in the history
  2. tests: pm: policy_api: Add test for latency immediate action

    Add test for the case where latency change triggers an immediate
    action. Configuration is using a single threshold for triggering
    of the action.
    
    Signed-off-by: Krzysztof Chruściński <[email protected]>
    nordic-krch committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    e7dd4c6 View commit details
    Browse the repository at this point in the history