anchao opened a new pull request, #21036:
URL: https://github.com/apache/nuttx/pull/21036
## Summary
Avoid calculating an absolute expiration time for immediate workqueue items.
For regular workqueue submissions, `work_qqueue()` used to call
`clock_delay2abstick(delay)` even when `delay == 0`. Immediate work items
are
queued directly to the expired list and do not use pending timer ordering,
so
the current system tick read is unnecessary in that path.
This change only computes the absolute expiration time when the work item is
a
non-periodic delayed work item (`delay > 0`).
## Benefits
- Avoids an unnecessary `clock_systime_ticks()` read for immediate work
items
- Keeps delayed work timing unchanged
- Keeps periodic `work_queue_next()` behavior unchanged
## Testing
sim/nsh
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]