/proc/cpuinfo not showing all info
greg at kroah.com
Tue Jan 19 05:15:22 EST 2021
On Tue, Jan 19, 2021 at 09:08:23AM +0000, Pankaj Vinodrao Joshi wrote:
> sorry for the last mail that i was not able to convey what i was meaning to, i have noticed for almost all ARCH when i will do $ cat /proc/cpuinfo ,it will shows all cpu related info including cpu frequency but for my case i am getting almost everything except cpu frequency in /proc/cpuinfo.
> Now my question is how i can add this cpufreq related info into /proc/cpuinfo ??
Why do you want to add cpu frequency to /proc/cpuinfo?
You can do that, but it will not be the "correct" way to export this
information to userspace so that userspace can properly handle it.
> Also what all other alternatives /methods are there to get cpufreq
> related info from kernel ??
See what Valdis wrote, that's the correct api to use.
More information about the Kernelnewbies