Skip to content

Commit

Permalink
tools/power turbostat: dump CPUID.7.EDX.Hybrid
Browse files Browse the repository at this point in the history
CPUID leaf 7 EDX now tells us if the processor has hybrid CPUs

Signed-off-by: Len Brown <[email protected]>
  • Loading branch information
lenb committed Jul 28, 2022
1 parent 7535249 commit 774627c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/power/x86/turbostat/turbostat.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ unsigned int do_slm_cstates;
unsigned int use_c1_residency_msr;
unsigned int has_aperf;
unsigned int has_epb;
unsigned int is_hybrid;
unsigned int do_irtl_snb;
unsigned int do_irtl_hsw;
unsigned int units = 1000000; /* MHz etc */
Expand Down Expand Up @@ -5630,7 +5631,10 @@ void process_cpuid()
__cpuid_count(0x7, 0, eax, ebx, ecx, edx);

has_sgx = ebx & (1 << 2);
fprintf(outf, "CPUID(7): %sSGX\n", has_sgx ? "" : "No-");

is_hybrid = edx & (1 << 15);

fprintf(outf, "CPUID(7): %sSGX %sHybrid\n", has_sgx ? "" : "No-", is_hybrid ? "" : "No-");

if (has_sgx)
decode_feature_control_msr();
Expand Down

0 comments on commit 774627c

Please sign in to comment.