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

Change where get max and min get called #101

Merged
merged 2 commits into from
Jun 13, 2022
Merged

Change where get max and min get called #101

merged 2 commits into from
Jun 13, 2022

Conversation

JakeRoggenbuck
Copy link
Owner

@JakeRoggenbuck JakeRoggenbuck commented Sep 15, 2021

fixes #99

@JakeRoggenbuck
Copy link
Owner Author

This will mean get_max will only call once at start.

@JakeRoggenbuck
Copy link
Owner Author

Wait, cpus max and min can change independently

@JakeRoggenbuck JakeRoggenbuck marked this pull request as draft September 15, 2021 16:10
@JakeRoggenbuck JakeRoggenbuck marked this pull request as ready for review January 30, 2022 23:07
@JakeRoggenbuck
Copy link
Owner Author

@Camerooooon @Shuzhengz Do we think that min and max cpu speed will change when this is running?

@Shuzhengz
Copy link
Collaborator

min will be 0 (cant have negative hz), and max will be the max boost clock for the specific cpu (unless they somehow manages to overclock their laptop cpu, in that case you need msr to read it)

@JakeRoggenbuck
Copy link
Owner Author

Cool, thanks

@JakeRoggenbuck
Copy link
Owner Author

I remember we were talking about having a setting to undo this change in case people had hot-swappable cpus but maybe it isn't something we need to super. Should we merge this? It just reduces the call of get_max and get_min from every tick to just once at the start

Copy link
Collaborator

@Shuzhengz Shuzhengz left a comment

Choose a reason for hiding this comment

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

lgtm

@JakeRoggenbuck JakeRoggenbuck merged commit 5257498 into main Jun 13, 2022
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.

cpu.update calls get_max and get_max
2 participants