diff options
Diffstat (limited to 'firmware/target/hosted/cpuinfo-linux.c')
-rw-r--r-- | firmware/target/hosted/cpuinfo-linux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/hosted/cpuinfo-linux.c b/firmware/target/hosted/cpuinfo-linux.c index c3669a9f5c..8165a0961b 100644 --- a/firmware/target/hosted/cpuinfo-linux.c +++ b/firmware/target/hosted/cpuinfo-linux.c | |||
@@ -176,7 +176,7 @@ bool current_scaling_governor(int cpu, char* governor, int governor_size) | |||
176 | sizeof(path), | 176 | sizeof(path), |
177 | "/sys/devices/system/cpu/cpu%d/cpufreq/scaling_governor", | 177 | "/sys/devices/system/cpu/cpu%d/cpufreq/scaling_governor", |
178 | cpu); | 178 | cpu); |
179 | FILE *f = fopen(path, "r"); | 179 | FILE *f = fopen(path, "re"); |
180 | if(f == NULL) | 180 | if(f == NULL) |
181 | { | 181 | { |
182 | DEBUGF("ERROR %s: Can not open %s for reading.", __func__, path); | 182 | DEBUGF("ERROR %s: Can not open %s for reading.", __func__, path); |
@@ -252,7 +252,7 @@ static int read_cpu_frequency(int cpu, enum cpu_frequency_options freqOpt) | |||
252 | } | 252 | } |
253 | } | 253 | } |
254 | 254 | ||
255 | FILE *f = fopen(path, "r"); | 255 | FILE *f = fopen(path, "re"); |
256 | if(f == NULL) | 256 | if(f == NULL) |
257 | { | 257 | { |
258 | DEBUGF("ERROR %s: Can not open %s for reading.", __func__, path); | 258 | DEBUGF("ERROR %s: Can not open %s for reading.", __func__, path); |