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

Only attempt changing currently enabled CPUs #372

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sandy-8925
Copy link

Currently throttled assumes all CPUs are enabled, and if any CPUs are disabled using chcpu, then throttled Python script crashes with an exception.

This PR fixes this problem by checking which CPUs are enabled (disabled CPUs don't show up under /dev/cpu) and then only attempting to write MSR for those.

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.

1 participant