From b4b693a11ededad046455b2d04fe27200bc22dfb Mon Sep 17 00:00:00 2001 From: Dr-Noob Date: Thu, 26 Nov 2020 12:14:37 +0100 Subject: [PATCH] [v0.91][ARM][BUGFIX] Do not print error message if frequency file does not exist in ARM. Fix arm udev file (I uploaded my debug udev by mistake) --- src/arm/udev.c | 3 +-- src/common/udev.c | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/arm/udev.c b/src/arm/udev.c index 976b9d1..a487ad1 100644 --- a/src/arm/udev.c +++ b/src/arm/udev.c @@ -2,8 +2,7 @@ #include "midr.h" #define _PATH_CPUS_PRESENT _PATH_SYS_SYSTEM _PATH_SYS_CPU "/present" -//#define _PATH_CPUINFO "/proc/cpuinfo" -#define _PATH_CPUINFO "cpuinfo_debug" +#define _PATH_CPUINFO "/proc/cpuinfo" #define CPUINFO_CPU_IMPLEMENTER_STR "CPU implementer\t: " #define CPUINFO_CPU_ARCHITECTURE_STR "CPU architecture: " diff --git a/src/common/udev.c b/src/common/udev.c index 872dd2c..94bf0bb 100644 --- a/src/common/udev.c +++ b/src/common/udev.c @@ -32,8 +32,12 @@ long get_freq_from_file(char* path) { int filelen; char* buf; if((buf = read_file(path, &filelen)) == NULL) { + #ifdef ARCH_X86 perror("open"); printBug("Could not open '%s'", path); + #elif ARCH_ARM + printWarn("Could not open '%s'", path); + #endif return UNKNOWN_FREQ; }