From 206e3d987b1791518565f52ab54a277ed9c23f6f Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Sun, 6 Mar 2016 11:38:26 +0100 Subject: [PATCH] add EST check before p-states will be printed --- hermit/arch/x86/kernel/processor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hermit/arch/x86/kernel/processor.c b/hermit/arch/x86/kernel/processor.c index 32bfeff3a..0de73250e 100644 --- a/hermit/arch/x86/kernel/processor.c +++ b/hermit/arch/x86/kernel/processor.c @@ -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));