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

update tasks.c #22

Merged
merged 2 commits into from
Mar 23, 2020
Merged

update tasks.c #22

merged 2 commits into from
Mar 23, 2020

Conversation

killua-killua
Copy link
Contributor

Is this a more efficient way to update "xNextTaskUnblockTime" in prvResetNextTaskUnblockTime( ) ?

Why don't get xNextTaskUnblockTime directly in this way?
@RichardBarry
Copy link
Contributor

Thanks for your suggestion - on first look it seems this could be a nice optimisation - we will test and report back.

Copy link
Contributor

@yuhui-zheng yuhui-zheng left a comment

Choose a reason for hiding this comment

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

The change itself looks good and has been tested on hw.

TCB_t *pxTCB at line 3951 is no longer needed in this local function. Let's merge this PR, and I will have a follow up PR to remove the local variable. (I cannot update this PR directly, looks like the source branch is deleted. )

@yuhui-zheng yuhui-zheng merged commit 3b8c72c into FreeRTOS:master Mar 23, 2020
jefftenney pushed a commit to jefftenney/FreeRTOS-Kernel that referenced this pull request Mar 31, 2020
An optimization for prvResetNextTaskUnblockTime().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants