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

a problem(?) in scheduler #163

Open
circl0 opened this issue Sep 13, 2016 · 0 comments
Open

a problem(?) in scheduler #163

circl0 opened this issue Sep 13, 2016 · 0 comments

Comments

@circl0
Copy link
Contributor

circl0 commented Sep 13, 2016

in function get_top_thread (kernel/thread.c)

uint next_queue = HIGHEST_PRIORITY - __builtin_clz(local_run_queue_bitmap) - (sizeof(run_queue_bitmap) * 8 - NUM_PRIORITIES);

if NUM_PRIORITIES is less than 32, the result will be wrong?

Regards,
Allen Y.

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

No branches or pull requests

1 participant