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

SMP: preemptionPoint() should know about other cores #1054

Open
Indanz opened this issue Jun 5, 2023 · 0 comments
Open

SMP: preemptionPoint() should know about other cores #1054

Indanz opened this issue Jun 5, 2023 · 0 comments
Labels
bug Not working as intended SMP Issues related to muticore functionality

Comments

@Indanz
Copy link
Contributor

Indanz commented Jun 5, 2023

To limit WCET, preemptionPoint() is called to check if there is anything else to do. It returns EXCEPTION_PREEMPTED when IRQs are pending or when the current task runs out of budget.

But with SMP, the global kernel lock will be held and other cpu cores can be blocked on the lock. preemptionPoint() either needs to check for other cores wanting to take the lock, or to always return EXCEPTION_PREEMPTED on SMP.

This issue was raised on the mailing list by Yadong Li.

@Indanz Indanz added bug Not working as intended SMP Issues related to muticore functionality labels Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended SMP Issues related to muticore functionality
Projects
None yet
Development

No branches or pull requests

1 participant