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:
parent
e33c710f56
commit
206e3d987b
1 changed files with 3 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue