From 22811aeca3111b9ab9368065d11e17f41b6fd587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Toma=C5=BEi=C4=8D?= Date: Wed, 31 May 2023 15:55:51 +0200 Subject: [PATCH] Fill frequency field on arm linux --- src/arm/linux/init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/arm/linux/init.c b/src/arm/linux/init.c index d3da5a9d..634fe2a5 100644 --- a/src/arm/linux/init.c +++ b/src/arm/linux/init.c @@ -524,6 +524,7 @@ void cpuinfo_arm_linux_init(void) { .vendor = arm_linux_processors[i].vendor, .uarch = arm_linux_processors[i].uarch, .midr = arm_linux_processors[i].midr, + .frequency = arm_linux_processors[i].max_frequency, }; } @@ -544,6 +545,7 @@ void cpuinfo_arm_linux_init(void) { cores[i].vendor = arm_linux_processors[i].vendor; cores[i].uarch = arm_linux_processors[i].uarch; cores[i].midr = arm_linux_processors[i].midr; + cores[i].frequency = arm_linux_processors[i].max_frequency; linux_cpu_to_core_map[arm_linux_processors[i].system_processor_id] = &cores[i]; if (linux_cpu_to_uarch_index_map != NULL) {