Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Submit upstream #2

Open
gsauthof opened this issue Sep 7, 2019 · 2 comments
Open

Submit upstream #2

gsauthof opened this issue Sep 7, 2019 · 2 comments

Comments

@gsauthof
Copy link

gsauthof commented Sep 7, 2019

Having a /sys/devices/system/cpu/cpu0/tsc_freq_khz seems to be generally useful.

Do you plan to submit a patch with this functionality to the LKML?

@artemdinaburg
Copy link
Collaborator

I agree it would be useful but I think the current code is not ready: it is missing some important parts like checking for existence of CPU0 (not guaranteed with hotplug), and verifying that the value makes sense before exporting it (in the case of a tsc that doesn't sync across cores, for instance).

I was hoping that Google could upstream whatever they have, it is probably much better than my version :).

@shuckc
Copy link

shuckc commented Jan 20, 2022

This is nice - much better than userspace calibration code. Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants