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

sys/ztimer: Remove the deprecated ztimer_now64 #20826

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

chrysn
Copy link
Member

@chrysn chrysn commented Aug 20, 2024

This removal has been scheduled for removal after 2022.10, and its replacement ztimer64_now has long been available.

This was done with little knowledge of how ztimer_now64 actually worked: I effectively grepped for /ztimer.now64/i, changed the code to what it would have been if MODULE_ZTIMER_NOW64 had never been there, and removed the various references to things that are different when it was active.

I've left the ztimer_now_t in place, but documented it to be uint32_t unconditionally. I think it is a practical choice to have semantic type aliases even when they are constant, but if reviewers prefer, I can just as well remove or deprecated that type (but it was not deprecated, so we better at least leave it deprecated).

Testing procedure

  • ztimer tests still pass
  • Everything still compliles

Issues/PRs references

I found that this was still around updating the Rust wrappers for ztimer -- nothing that needed much special care, but the conversion path from ztimer_now_t to u32 where ztimer_now_t is larger would have effectively never been tested.

This has been scheduled for removal after 2022.10, and its replacement
ztimer64_now has long been available.
@chrysn chrysn requested a review from kaspar030 August 20, 2024 18:58
@github-actions github-actions bot added Area: doc Area: Documentation Area: tests Area: tests and testing framework Area: build system Area: Build system Area: timers Area: timer subsystems Area: sys Area: System labels Aug 20, 2024
@chrysn chrysn added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Process: removal Integration Process: The PR is removing a deprecated feature or API labels Aug 20, 2024
@riot-ci
Copy link

riot-ci commented Aug 20, 2024

Murdock results

✔️ PASSED

a263663 sys/ztimer: Remove the deprecated ztimer_now64

Success Failures Total Runtime
10180 0 10180 18m:14s

Artifacts

@maribu maribu added this pull request to the merge queue Aug 21, 2024
Merged via the queue into RIOT-OS:master with commit 2ad1325 Aug 21, 2024
28 checks passed
@chrysn chrysn deleted the remove-ztimer-now64 branch August 21, 2024 15:49
@benpicco benpicco added this to the Release 2024.10 milestone Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: build system Area: Build system Area: doc Area: Documentation Area: sys Area: System Area: tests Area: tests and testing framework Area: timers Area: timer subsystems CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Process: removal Integration Process: The PR is removing a deprecated feature or API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants