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/isrpipe/read_timeout: don't set up timer if data is available #20558

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

derMihai
Copy link
Contributor

@derMihai derMihai commented Apr 8, 2024

Contribution description

isrpipe_read_timeout() always sets a timer, adding unnecessary overhead for small, frequent reads (like in the AT driver). With this PR, a timer is set only if no data is available.

Testing procedure

I tested this with the AT unit tests.

@github-actions github-actions bot added the Area: sys Area: System label Apr 8, 2024
@benpicco benpicco requested a review from kaspar030 April 8, 2024 14:38
@derMihai derMihai force-pushed the mir/isrpipe_timeout branch from 73dd680 to 016f074 Compare April 8, 2024 14:43
@benpicco benpicco added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Apr 8, 2024
Copy link
Contributor

@benpicco benpicco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good and makes sense.

@riot-ci
Copy link

riot-ci commented Apr 8, 2024

Murdock results

✔️ PASSED

016f074 sys/isrpipe/read_timeout: don't set up timer if data is available

Success Failures Total Runtime
10044 0 10045 11m:33s

Artifacts

@benpicco benpicco added this pull request to the merge queue Apr 9, 2024
Merged via the queue into RIOT-OS:master with commit f5e6677 Apr 9, 2024
27 checks passed
@MrKevinWeiss MrKevinWeiss added this to the Release 2024.04 milestone Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: sys Area: System CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants