Skip to content

[Feature] add CPUID processor brand string handling and parsing #80

@wipawel

Description

@wipawel

Is your feature request related to a problem? Please describe.

We need a simple and universal method for obtaining a CPU clock frequency scale to be able to translate TSC returned ticks into {n,u,m}seconds.
For now, let's ignore auto frequency scaling, turbo boosting and other features.

Describe the solution you'd like
A clear and concise description of what you want to happen.

Implement CPUID returned processor brand string handling as described here: https://www.felixcloutier.com/x86/cpuid#the-processor-brand-string-method and display it upon KTF start.

Add extracting the processor frequency from the brand string (example algorithm is described here:
https://www.felixcloutier.com/x86/cpuid#extracting-the-processor-frequency-from-brand-strings)

Describe alternatives you've considered

Some alternative methods are described here: https://wiki.osdev.org/Detecting_CPU_Speed but let's ignore them for now.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions