Open antonblanchard opened 3 years ago
Thinking about it some more, I can pull that data from CpuInfo. A bit of extra work to get there though.
What if the CpuTime
struct included a new field that contained the name of the cpu ("cpu4" for example)? Does that help? Or are you looking for maybe a HashMap instead of a Vec?
I have a system where CPUs have been hot unplugged:
It looks like we assume CPUs are contiguous, and don't have a way to retrieve the CPU IDs.