From 5093575f11adc8e8250eddc9fe8d18db6b1bfb9a Mon Sep 17 00:00:00 2001 From: Dr-Noob Date: Tue, 10 Sep 2024 21:01:32 +0100 Subject: [PATCH] FIX --- src/x86/cpuid.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/x86/cpuid.c b/src/x86/cpuid.c index 27132af..cfe5f81 100644 --- a/src/x86/cpuid.c +++ b/src/x86/cpuid.c @@ -573,10 +573,13 @@ struct cpuInfo* get_cpu_info(void) { // after fetching the topology for all CPU modules (this information // is required by get_frequency_info) if (accurate_pp()) { + int32_t unused; int32_t *max_freq_pp_vec = NULL; ptr = cpu; for (uint32_t i=0; i < cpu->num_cpus; i++) { + set_cpu_module(i, cpu->num_cpus, &unused); + ptr->freq = get_frequency_info(ptr, accurate_pp(), &max_freq_pp_vec); ptr = ptr->next_cpu; }