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

[PATCH v3] timer: tick does not need to start from zero #1968

Merged
merged 4 commits into from
Dec 12, 2023

Commits on Dec 11, 2023

  1. validation: timer: tick should not wrap in 10 years

    Check that ticks and converted nanosecond value will not wrap in
    10 years.
    
    Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
    Reviewed-by: Matias Elo <matias.elo@nokia.com>
    psavol committed Dec 11, 2023
    Configuration menu
    Copy the full SHA
    34e48ab View commit details
    Browse the repository at this point in the history
  2. test: timer_perf: measure timer start cycles

    Measure and report timer start cycles in expire and start mode
    (-m 2).
    
    Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
    Reviewed-by: Matias Elo <matias.elo@nokia.com>
    psavol committed Dec 11, 2023
    Configuration menu
    Copy the full SHA
    f09f48a View commit details
    Browse the repository at this point in the history
  3. linux-gen: timer: no need to start tick from zero

    API does not require tick to start from zero. Optimize timer
    implementation by removing per timer pool start time subtraction.
    
    Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
    Reviewed-by: Matias Elo <matias.elo@nokia.com>
    psavol committed Dec 11, 2023
    Configuration menu
    Copy the full SHA
    ef4e273 View commit details
    Browse the repository at this point in the history
  4. linux-gen: timer: inline odp_timer_current_tick()

    Inline current tick function as it does not depend on timer
    pool structure any more.
    
    Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
    Reviewed-by: Matias Elo <matias.elo@nokia.com>
    psavol committed Dec 11, 2023
    Configuration menu
    Copy the full SHA
    5ceb9fb View commit details
    Browse the repository at this point in the history