1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

add EST check before p-states will be printed

This commit is contained in:
Stefan Lankes 2016-03-06 11:38:26 +01:00
parent e33c710f56
commit 206e3d987b

View file

@ -237,6 +237,9 @@ static void set_max_pstate(void)
void dump_pstate(void)
{
if (!has_est())
return;
kprintf("P-State 0x%x - 0x%x\n", min_pstate, max_pstate);
kprintf("PERF CTL 0x%llx\n", rdmsr(MSR_IA32_PERF_CTL));
kprintf("PERF STATUS 0x%llx\n", rdmsr(MSR_IA32_PERF_STATUS));