Skip to content

sys/isrpipe/read_timeout: don't set up timer if data is available#20558

Merged
benpicco merged 1 commit intoRIOT-OS:masterfrom
derMihai:mir/isrpipe_timeout
Apr 9, 2024
Merged

sys/isrpipe/read_timeout: don't set up timer if data is available#20558
benpicco merged 1 commit intoRIOT-OS:masterfrom
derMihai:mir/isrpipe_timeout

Conversation

@derMihai
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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
@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