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

ledscape_wait CPU usage 99% #14

Closed
seriousmumbo opened this issue Oct 24, 2014 · 2 comments
Closed

ledscape_wait CPU usage 99% #14

seriousmumbo opened this issue Oct 24, 2014 · 2 comments

Comments

@seriousmumbo
Copy link

Hey I found a patch in the osresearch issues:

osresearch#6
mikelikespie@64311c1

I'm going to test later ... but I thought I'd share now.

@seriousmumbo
Copy link
Author

Ok, so the patch is for a very old version of LEDscape. I tried to shoehorn it in, but it's failing. Still I think using the PRU interrupt might be a better approach that a spinning for loop.

@Yona-Appletree
Copy link
Owner

I have included an initial version of this interrupt-based waiting. It's not perfect because synchronizing between the PRUs get's a bit tricky and I don't, under any circumstances, want to get into a state where the interrupt has been fired but the userspace code is still waiting. As such, this fix is imperfect, but does decrease CPU usage somewhat (~85% IIRC). I'm going to close this issue, but I'm open to pull requests to improve the behavior.

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